You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

&<img src="../resources/images/opentocr.png" title="Open Contents list" border="0"&>
You are here:

FOR/ENDFOR

You can access the items in collections using a For/EndFor loop.
This example moves all the forms in a ChildForms collection to the left by 5 pixels:
For Each(#Current) In(#ChildForms)
Change Field(#NEW_LEFT) To('#Current.Left - 5')
Set Com(#Current) Left(#New_Left)
Endfor
This example disables all the items in submenu #smnu_1:
For Each(#Current) In(#smnu_1.Items)
Set Com(#Current) Enabled(False)
Endfor
&<img src="../resources/images/opentoc-dark.png" title="Open Contents List" border="0"&>

  • No labels