Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uses of properties Tag and Comment
Message
 
 
To
19/07/2009 20:45:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01412768
Message ID:
01413311
Views:
47
>>>Am curious --
>>>
>>>Anybody consistently use either the Tag or Comment properties???
>>>
>>>I have never used either -- am simply wondering if anybody uses them at all.
>>
>>I've seen a lot of code where TAG property being used to save current value of the control in GotFocus. In fact, I used this technique myself.
>
>I've seen it done quite often, but I'm not using it at all. First, there's only one .tag, and if there's anyone who should use it, it's the framework. However, it's meaningless. What's a tag? It has about zero semantic information; it's also confusing because there are index tags too, so is it related to some use of an index?
>
>Worse, what if there's a third party component (though nobody ever explained who are the first two parties and how the ballots are cast) which writes into the .tag property? It may overwrite what framework is doing.
>
>My preference is to define custom properties with meaningful names, at whichever level, at design nor run time. The chances for accidental overlapping of names are minimal.

I agree. I used such technique only as a quick and dirty solution.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform