E
ecsousa
Guest
Hello, UNDO statement: Backs out all modifications to fields and variables made during the current iteration of a block , and indicates what action to take next. Someone can explain me why the examples have different behavior: example 1: DEFINE VAR a AS Int. teste: DO ON ERROR undo, RETRY: MESSAGE "oi" VIEW-AS ALERT-BOX. Update a. Undo, Retry teste. END. Example 2: DEFINE VAR a AS Int. teste: DO ON ERROR undo, RETRY: MESSAGE "oi" VIEW-AS ALERT-BOX. assign a = random (0, 100). Undo, Retry teste. END. I use update in the first....and assign in the second... both changes the variable a... but with assign the block is not repeated. Thanks, Éllen
Continue reading...
Continue reading...