Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Property of an object
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00537719
Message ID:
00537893
Vues:
29
>How can you get an object reference to the object itself then in VB?

Hi David,

You have to use the set statment to set an object to a var. example
dim loText as TextBox
set loText = me.Text1
' The following both set the property.
loText.text = "Hello"
loText = "goodbye"
It's not as terrible as everyone imagines, and does save some typing.

hth

>
>
loText = thisform.Text1 && get a reference to the control
>loText.BackColor = rgb(255,0,0) && manipulate the object
>
>The above kind of code is more useful and common in VFP.
>
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform