Tags for controls

PatrikL

Member
Licensed User
Hi Erel,

Its possible to add property TAG (String or Variant) for all controls. Its just space to store some information connected with control. For example: I have Image on form and I need store information about that what picture is loaded into. Now I must create some special global variable.

Before:
Image1.Image = ImageList1.Item(0)
indexofimage = 0

After:
Image1.Image = ImageList1.Item(0)
Image1.Tag = 0

I thing it will be useful.

Thanx
 

enonod

Well-Known Member
Licensed User
Longtime User
This is similar to that used by the Delphi VCL and is very useful indeed. With Delphi their is no restriction as to its use, it does not have to relate to the control, but it can be any value.
I second this request.
 
Top