Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do Form within a loop?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00405828
Message ID:
00406784
Views:
29
Jim,

I have 3 different forms that handle keying in different types of Contracts(Rent to Own, Rent Month to Month, Extended Warranty). The user sets up a table defining the different defaults Contract types for their store. They can have as many of these defaults as they want but each one is associated with one of the 3 different types.

Anyway I wanted one menu option that said "New Contract". Right now this menu options calls 'yNewRental.prg'. First this prg needs to provide the user with a customer picklist and then a Contract Default picklist. Once they pick the Contract Default I can determine which form is run.

Once the contract is keyed in and finished I want program control to go back to the customer picklist and then back to the Contract Default pick list. Which could require a different form to be run.

Thanks for your time,
Paul

>Then your code won't work. Non-modal forms are asynchronous, that is you do them and then control returns to the calling code to finish. If you try to determine, in the calling code, if the called form has been dispatched then the form will not get focus and the user will not be able to use it.
>
>You approach requires that the forms be modal. Perhaps, if you explain what exactly you sare trying to do, we can suggest an alternative approach. The approach of using the loop, as you are, is a process driven design and the event driven forms will not cooperate very well with that.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform