Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't make forms go away
Message
De
04/05/1998 13:49:25
 
 
À
04/05/1998 13:46:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00096713
Message ID:
00096784
Vues:
17
>>
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform