Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie: how to keep form from immediately releasing?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01168751
Message ID:
01168818
Views:
13
>>I am sure this is a simple one, but the VFP 6 training I just finished (Appdev/Booth) never seems to mention how to keep a form active in a runtime environment. In the training, everything was done from a command window.
>>
>>In my menu code I execute a "DO FORM formname NAME whatever LINKED WITH param". This syntax was created by the VFP conversion wizard for a 2.x project. I have scrapped the pageframe-based formset that it created, and created a new form without pageframes. But when my code executes the form, the form disappears. I tried making the form Modal, but that had no effect. Is there something I have to place in the menu code just before or after executing the form? Something else??? Maybe the LINKED clause is my problem?
>>
>>TIA,
>>
>>-Mike
>
>Look at READ EVENTS and CLEAR EVENTS in the help file - the read is th point at which the form will wait for an event to happen (keypress, mouse, etc)
>
>Not sure about the linked clause.

Correct... after you have issued whatever command to run your menu ex:

do Mymenu.mpr

THEN issue

read events

when you are done with the app (via whatever menu choice), you will need a
clear events
quit
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform