VB Macro Substitution - TechRepublic
General discussion
September 28, 2000 at 04:03 AM
srimail75

VB Macro Substitution

by srimail75 . Updated 25 years, 7 months ago

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

This discussion is locked

All Comments