General information
Category:
Coding, syntax & commands
Title:
Question about referencing objects
I am wanting to be able to add some command button objects 'on the fly' in one of my forms, and give each one a name based on a value in my table.
For example,
DO WHILE NOT EOF()
lcNewObjectName = 'cntMenu' + ALLTRIM(STR(MenuItems.Key))
THISFORM.AddObject(lcNewObjectName, 'commandbutton')
SKIP
ENDDO
My question is: how can I reference these new objects without 'hard-coding' the names of each object?
Thanks for any insight!
Chris
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only