Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I return a value from the init method of a form
Message
 
 
To
19/07/2006 16:39:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01137825
Message ID:
01137828
Views:
15
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform