Hi,
I have been trying to create an expression to use with a macro or evaluate() function to do the following:
I want to SCAN through records of a VFP table and for each record execute SQLEXEC() function to add this record to the SQL Server table. The template of the expression is as following:
cExpr = "insert into MyTable (fld1, fld2, fld3) values (?fld1, ?fld2, ?fld3)"
SQLEXEC(hCon,cExpr)
The problem is that I can't create the expression such that I can execute it as following:
SELECT MyVfpTable
SCAN
cExpr = &cExpr.
cExpr = evaluate(cExpr)
SQLEXEC(hCon,cExpr)
ENDSCAN
I would appreciate any suggestions on how to make this expression. TIA.
ENDSCAN
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham