Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Property of an object
Message
 
 
To
31/07/2001 09:47:06
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00537719
Message ID:
00537837
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform