I'm trying to duplicate some code I currently run in sql into foxpro. I currently declare some variables in sql and within a select statement set those variables to a value.
example:
select @curprog = prog_id,@curservcat = serv_cat, @curconno = [5yr_conno],
@cur1yrstartdt = [1yr_startdt], @cur1yrenddt = [1yr_enddt]
from #test9
where id1 = @curid
I would like to try and duplicate this same thing within foxpro
I have already declared my variable, just not sure how to do something similar in foxpro as I'm pretty new to the language. Any help would be greatly appreciated.
example:
select @curprog = prog_id,@curservcat = serv_cat, @curconno = [5yr_conno],
@cur1yrstartdt = [1yr_startdt], @cur1yrenddt = [1yr_enddt]
from #test9
where id1 = @curid
I would like to try and duplicate this same thing within foxpro
I have already declared my variable, just not sure how to do something similar in foxpro as I'm pretty new to the language. Any help would be greatly appreciated.