Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object.Tag purpose
Message
 
 
To
21/09/2005 13:02:36
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01051560
Message ID:
01053681
Views:
9
>>>>Hello,
>>>>
>>>>What is the use of Object.Tag?
>>>
>>>You can keep any data there (that data must be Char) From Help for TAG property:
>>>Stores any extra data needed for your program. Available at design time and run time.
>>
>>Yes, I understand that...
>>
>>But, I just found out that mostly every object has such property, but I would like to ask UT users where they used this property. Is it usefull? Maybe there is some function getObjectByTag?
>
>The TAG property is generally legacy to the time before we had AddProperty method and function. Along with the Comment property, it was the only property we could rely on to not be affected by VFP during runtime.

It is indeed legacy, but its legacy is VB. <g>

In the very earliest alphas the object model was very heavily based on VB's and Tag and Comment were two that came along for the ride. We had long & rambling discussions like "do we really need both GotFocus() and When()?" (We do!)

Tag and Comment just sorta stuck around unnoticed.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform