[Gambas-user] Parsing through all controls of a form
Rob Kudla
sourceforge-raindog2 at ...94...
Thu Jan 19 19:09:05 CET 2006
On Thu January 19 2006 11:17, johnf wrote:
> Could you add an extra - tag property. We would have two (2)
> tag like properties. So not to break older coding maybe you
> could add the new property with a different name - like tag2.
You know, the Tag property is a variant. Nothing stopping you
from sticking a collection in there.... something I've done in
the past. Then you can put as much data as you like into the
tag.
button1.Tag = NEW Collection
button1.Tag["Name"] = "Button1"
button1.Tag["Otherinfo"] = "Fhqwhgads"
Message.Info(button1.Tag["Otherinfo"])
This was also the case in VB, but since a number of the things we
commonly do in Gambas with the tag property (control name, index
or other identifier for when we're iterating over the controls
on the form) are available through other means in VB, most
developers just treat it as a string.
Rob
More information about the User
mailing list