Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro Substitution in VB
Message
De
25/10/1998 23:28:32
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00150101
Message ID:
00150381
Vues:
30
>FWIW, you don't have to use macro expansion in VFP for this either. Look at the SetAll() method, and the Controls[] collection. You can also use eval()
>
>
for i = 1 to 10
>   lcName = "thisform.text" + alltrim( str(i) )
>   loObject = eval( lcName )
>   with loObject
>      .Enabled = .t.
>   endwith
>endfor
>

As far as I know, eval(cExpr) return the result of
the cExpr, not a pointer/reference. Are you sure?

Frankly, I also want to know how to use macro
substitution in VB for the sake of convinience.
Regards,
Mr. Man-wai Chang
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform