Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Property of an object
Message
 
 
À
31/07/2001 09:47:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00537719
Message ID:
00537837
Vues:
30
Ramil,

How can you get an object reference to the object itself then in VB?
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.

>In VB you can get the value of the default property of an object without bothering to use the property name:
>
>Example:
>
>dim x as string
>
>' any of the following line of codes is valid
>set x = Form.Textbox
>set x = Form.Textbox.Text
>
>' both will return the value of the default property which is .Text
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform