Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Reference Similar Objects on a Form
Message
De
29/04/1999 01:48:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
How to Reference Similar Objects on a Form
Divers
Thread ID:
00213319
Message ID:
00213319
Vues:
55
I HAVE A FORM WITH eg. 4 TEXTBOXES.
Their names are Text1,Text2,Text3,Text4

I need to be able to display a message in them - set their .VALUE = msg.

I have a form level metod called UPDTTXT
LPARAMETERS TXTPASSED,BOXNO

bb = "ThisForm.Text"+ALLTRIM(STR(BOXNO))+".Value = '"+TXTPASSED+"'"
&bb
* This is the only way I can address any text box - by using a macro.


So to display text in Text3, I call

ThisForm.updttxt("Box Three",3)

Is there a better way of doing this OTHER than using MACROS??

Thanks

Bernard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform