Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object.Tag purpose
Message
From
21/09/2005 07:13:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
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:
01051578
Views:
6
>>>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?

No there is not a such object. Tag is simply a property that you might use to store char data. Some uses. ie:
*Form activate - I want this to run once after init
if empty(this.Tag)
  this.Tag = 'done'
  *...
endif

* A textbox keeping pre-edit values - usefull for say summing grid column
*Gotfocus
this.Tag = transform(this.Value) 
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform