Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 103 When Using VFP & SP with Text Field
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00429443
Message ID:
00429760
Views:
17
Chris,

Variables must be in scope when SQLExec is called. For example, I have a oSQL object that I created which takes care of handling connections, error messages and such, and I use it this way:

oSQL.ExecuteSQL(cSQLString, "NewAlias")

Since LOCAL variables are no longer in scope inside the oSQL.ExecuteSQL() function, I can't use them. But yes, PRIVATE vars would work I guess; I don't use PRIVATEs! :)

Likewise, I can't use "?THISFORM.SomeProperty", because once inside oSQL, "THISFORM" doesn't mean anything!



>Thanks for the tip about using VFP variables as parameters with stored procedures. I think that is the way I will go. I have done a little testing with this, and it appears as though the variables must be PRIVATE, rather than LOCAL. Is this what you have found?
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform