elements example
Suppose you have a form that contains a bunch of spinboxes for measurements. You want to be able to set them all to zero with the click of a button.
function resetButton_onClick()
local nObj
for nObj = 1 to form.elements.size
if form.elements[ nObj ].baseClassName == "SPINBOX"
form.elements[ nObj ].value := 0
endif
endfor
Compare this loop with the example for before.