Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO FORM MyForm TO uResult--Undefined Variable
Message
From
14/09/1999 18:10:06
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00264264
Message ID:
00264708
Views:
22
>Hi:
>
>When I perform a DO FORM MyForm TO uResult AND I have a RETURN .F. in the Init of the form, I get a variable undefined as uResult.
>
>For example:
>
>DO FORM MyForm TO uResult
>? TYPE("uResult") && Returns "U"
>
>In my InInit:
>
>IF lCondition
> Thisform.ReturnValue = "1"
> RETURN .F.
>ENDIF
>
>In my Unload event I have:
>
>RETURN Thisform.ReturnValue
>
>I need to capture a return value to uResult and return a .f. in the Init. Can it be done?
>

Nope i returning .F. from Init prevents the form from being inited, so the3 method that would return the value is never invoked.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform