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:
00537728
Views:
24
>>Hi!
>>
>>No. You can define property TextBox, than add object TextBox. Property will return value when Accessing TextBox as object will work with object. Than in the textBox_Assign method you define what to return from TextBox object. But this is with use of the parent container only...
>>
>>>Hi all,
>>>
>>>Is there a way to assign a default property to an object in VFP? In VB, this is possible:
Form.Textbox = Form.Textbox.Text
>>>
>>>Thanks,
>
>I probably mistated my question. 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
>
Default properties are not supported under VFP. FYI, I don't think they are going to be supported under VB.NET either (they weren't initially unless it has changed in the last month or so).
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform