Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to use a variable value in .ControlName?
Message
De
26/11/2002 10:38:23
 
 
À
26/11/2002 09:59:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00726887
Message ID:
00727020
Vues:
18
Hilmar,

Another way to do it with out macro substitution...using this method would even allow for methods of the object to be called.
for nField = 1 to 48
    oTextBox = eval("thisform.text"+ transform(i))
    oTextBox.value = "Value :" + transform(i)
next i
>>Without macro substitution...
>>
>>
>>for FieldNum = 1 to 48
>>  STORE FieldNum TO ("ThisForm.Text" + trans(FieldNum)+".Value")
>>next
>>
>
>Interesting - I thought that macro substitution could not be avoided in this case. Thanks for the information.
>
>Hilmar.
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform