import 'MyDataAddin'
handle (1000,0)
endhandle
using namespace 'AVEVA.Core.Presentation.MyDataAddin'
!myData = OBJECT PMLMYDATA()
q var !myData.elementsInCollection('MyCollection')
[COLOR=#3E3E3E]Var !rest coll all (rest) with (mcount Gt 0) for ce[/COLOR]
[COLOR=#3E3E3E]Do !i indices !rest[/COLOR][INDENT][COLOR=#3E3E3E]-- Your code here[/COLOR][COLOR=#3E3E3E]
[/COLOR][/INDENT]
[COLOR=#3E3E3E]Enddo[/COLOR]
import 'MyDataAddin'
handle (1000,0)
endhandle
using namespace 'AVEVA.Core.Presentation.MyDataAddin'
!myData = OBJECT PMLMYDATA()
!collectionResult = !myData.elementsInCollection('MyCollection')
Do [COLOR=#3E3E3E]!i indices ![/COLOR]collectionResult[INDENT]-- Your code here[/INDENT]
Enddo