Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reference an object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00406488
Message ID:
00406491
Vues:
17
>When you create an object with the CREATEOBJECT( ) function, the object is scoped to a property of the class or a variable in the method that calls this function.
>
>Probably silly, but I will ask. Tried the FAQ. Hope I didn't miss it.
>
>Is there a way to scope an object to a variable which is already in existence?
>
>FE I tried something like this to no avail:
>
>** NB - THISFORM.myTextbox already exists
>oReference = "THISFORM.myTextbox"
>oReference.Visible = .T.

Sure, just don't put quotes around the object you're storing the reference to.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform