Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope of Objects
Message
De
19/04/1997 10:24:39
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00028947
Message ID:
00028970
Vues:
32
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform