General information
Category:
Forms & Form designer
Environment versions
Network:
Windows 2003 Server
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only