>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