Hi! We are converting Visual FoxPro(VFP) applications to Visual Basic 6(VB) and one of the features in VFP is “MAcro Substitution”.We could store a command into a variable and execute what was contained in variable. For Ex:
x=”me.”+rtrim(gareqfield(n))+”.setfocus”
In VB it appears we have to hard code the routine.For Ex:
if gareqfield(n)=”Text1″ then
me.textfields(1).setfocus
endif
Is there any macro substitution?How can we use macro substitution.
ThanksSridhar