Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about referencing objects
Message
From
12/01/2001 15:29:40
Chris Laffoon
Florists' Interlink, Inc.
Paragould, Arkansas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Question about referencing objects
Miscellaneous
Thread ID:
00463214
Message ID:
00463214
Views:
42
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
Map
View

Click here to load this message in the networking platform