Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I return a value from the init method of a form
Message
 
 
À
19/07/2006 16:39:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01137825
Message ID:
01137828
Vues:
16
No, you cannot. From VFP help: "To return a value to the TO VarName clause in the DO FORM command, use the RETURN command in the Unload event".
There's something wrong with your design if you have to call a form to just return a value.

>I call a form like this
>
>
>DO FORM c:\frmkey.scx WITH 'MARB65042713' TO tnam
>
>
>In the init of the frmkey form i have pout this code
>
>
>IF Thisform.recherche(tcVal) > 1
>    Thisform.ConfigKey(tcValRech,tcVal)
>    Thisform.configgrd(ALLTRIM(UPPER(tcValRech)))
>    GO TOP
>    Thisform.Refresh
>ELSE
>    RETURN thisform.valret
>    RETURN .f.
>ENDIF 	
>
>
>In The Recherche Method I init the valret property
>and i need to have this value in the tnam variable
>Is it possible
>
>Benoit
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform