Go to next field not working.

Discussion created by strngr12 on Apr 20, 2012
Latest reply on Apr 23, 2012 by strngr12



I have a script that iterates through the fields of a record using the following logic:


Go to Layout

Go to first field

set variable $firstField as active field

set variable $currentField as ""


if $firstField = $currentField exit loop

set variable $currentField as active field

do work on active field

go to next field

end loop


But when I print out the results of "go to next field" it gives me the same result as the current field before that command. In other words, it doesn't seem to actually go to the next field but stays on teh same one instead and then. of course, exits the loop. Is there some dependency on fields that needs to be there for it to advance to the next one?