Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Insert command prompting for value
Message
 
 
To
08/06/2006 10:49:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01127719
Message ID:
01127916
Views:
9
Jerry,
local xyz
xyz = 123
SQLExecWrapper( "insert into x values ( ?m.xyz ) " )

function SQLExecWrapper( lcSQL )
lnResult = SQLExec( gnHandle, lcSQL )
if ( lnResult < 1 )
   aerror( gaSQLError )
endif
return
xyz is not a variable that is in scope when the function runs so the SQL engine will prompt you for the value.

>Thanks. I removed some of the fields to use as an example. The example that I used in my first message had an extra comma after the second field. Other than that, it is the same code.
>I tried declaring the memvars to private and that did not work.
>Also, not sure what you mean by the "variables not being in scope".
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform