Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro Substitution in VB
Message
From
25/10/1998 23:28:32
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00150101
Message ID:
00150381
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform