` Printed Icetips Article

Icetips Article



Par2: Prop:AcceptAll -- Double Loop in forms
1997-11-12 -- Rob Keathley
 
If I understand correctly the problem is that the code in the embeds gets executed a 
second time after you press the OK button.  This will happen if code is put in the 
embeds for a control.  The reason this happens is that after the ok button is pressed the

program goes into the AcceptAll (a/k/a Non-Stop) loop and processes all the code in 
the embeds again (thus ensuring that all embeds are executed at least once).  To avoid 
this put an if around your code in the Accepted embed that looks like this:

IF NOT FormWindow{Prop:AcceptAll}
     Your Code
END

This will keep the code from happening again in the accept loop.



Printed November 23, 2024, 6:17 pm
This article has been viewed/printed 35246 times.