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

Click here to load this message in the networking platform