Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hey george - could you give me your views on this questi
Message
 
À
13/08/1998 14:42:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00126656
Message ID:
00126666
Vues:
16
>I would like to check for a return value from a FORM.
> How would I do this?
> thanks

Hi Rob,

Well, first the form has to be modal. Second, regardless of whether or not it actually does, a DO FORM myform.scx TO retval will return a value regardless of whether or not the form actually contains the line: RETURN whatever in the Unload event. If there's no return value, the variable will equal .T.. However, the form could legitimately return this value, but its more likely that it would return some other data type.

If you want to check this in development without actually opening the form in the design mode, you can USE it like a table. Locate "form" in the baseclass field, then see if the "PROCEDURE Unload" is found in the methods field of it. You'd have to scan the field to see if RETURN had something being returned before the ENDPROC statement.

hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform