Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't make forms go away
Message
From
04/05/1998 13:49:25
 
 
To
04/05/1998 13:46:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096713
Message ID:
00096784
Views:
15
>>
>>Normal structure is following:
>>*** Main.prg
>>*some setting here
>>DO FORM Login to lLoginflag
>>if lLoginflag
>> * some cleaning here
>> return
>>endif
>>DO FORM Mainform && this is main form/formset. Quit code should contain CLEAR EVENTS
>>READ EVENTS
>>* some cleaning here
>>RETURN
>
>Ed,
>Two questions on your structure:
>1) Where and what is the preferred placement of the 'Return' in the called form. Is it 'RETURN .T.' in the unload event?

There is no 'RETURN' in called form. Instead of this you should include CLEAR EVENTS in some place (toolbar QUIT button, and/or menu QUIT option).

>2) What is the purpose of the 'RETURN's if this is the calling prog? Should they be placed here and not in the called form?

No purpose, just to show the end of program.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform