` Prop:AcceptAll -- Double Loop in forms (Rob Keathley ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

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.


Today is November 21, 2024, 7:46 am
This article has been viewed 35244 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: