Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of Objects
Message
From
19/04/1997 10:24:39
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00028947
Message ID:
00028970
Views:
30
>I'm new to VFP (old FPW) and am a bit in the dark on the scope of objects and the variables that point to objects.
>
>
>I have a user object and in the init I run a login form to get the user details.
>
>How do I get the form to see the object variable. It always seems to think that my object 'aint an object.
>
>Cheers,
>Jamie
I think that in your case it is a matter of timing, that is, the object you are referring to may have not yet finished getting defined by the time you are making a reference to it. My suggestion would be to move the call to the login form to the object.gotfocus method. Let me know if this helps (or if I'm wrong)

Larry
L.A.Long
ProgRes
lalong1@charter.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform