Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about referencing objects
Message
De
12/01/2001 15:29:40
Chris Laffoon
Florists' Interlink, Inc.
Paragould, Arkansas, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Question about referencing objects
Divers
Thread ID:
00463214
Message ID:
00463214
Vues:
43
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform