>>
>>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