Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program flow in VFP
Message
From
10/11/2007 18:17:14
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
10/11/2007 17:58:23
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01268289
Message ID:
01268293
Views:
12
Hi Bob

>When does VFP wait for commands to finish, and when does it go ahead without waiting.
>
>One example of not waiting is when a “do form MyForm” is issued from a commend button. MyForm starts up, but the code following the “do form” continues without waiting for the form to close.
>
>I’m thinking of a control’s refresh that triggers refreshes in other controls like:
>
>with this.parent
> .cboA.refresh()
> .cboB.refresh()
> .cboC.refresh()
>endwith
>
>Could things continue in this case with a fast cboB.refresh executing before a slow cboA.refresh completes?

No. However, a timer could fire the refresh of any or all of them.

>Where would I find some general documentation on this in the Fox help file?

This is generally a tough thing to master. Look at WindowType property and Show methods in the help.

If you want a form to wait, make it modal. I'm not a fan of that. I say the user will have greater benefit by having forms that are not modal. Try to do all the activities you need within the current form, without popping up modal dialogs.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform