Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection handle invalid error
Message
From
01/11/2002 18:09:43
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
01/11/2002 17:19:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00718052
Message ID:
00718063
Views:
19
Maybe this is it:
THIS.lnHandle = SQLSTRINGCONNECT(lcConnStrAUSD)
Then you refer to a different property, THIS.lnHandleERCA, here:
lSuccess=SQLEXEC(THIS.lnHandleERCA,"SELECT * FROM myData","cMyData")
Assuming this last line is where the error is occurring, where do you define THIS.lnHandleERCA?
---J

>myForm.Load():
>
>lcConnStrAUSD="DRIVER={Microsoft Visual FoxPro Driver};" + ;
>"SourceDB=C:\Projects\mydata.dbc;SourceType=DBC;UID=;PWD=;"
>
>THIS.lnHandle=SQLSTRINGCONNECT(lcConnStrAUSD)
>
>IF THIS.lnHandleERCA>0
> lSuccess=SQLEXEC(THIS.lnHandleERCA,"SELECT * FROM myData","cMyData")
> IF lSuccess=1
> SET MULTILOCKS ON
> CURSORSETPROP('Buffering',3,'cMyData')
> CURSORSETPROP('TABLES','erca','cERCA')
> CURSORSETPROP('UPDATABLEFIELDLIST','myField','cMyData')
> CURSORSETPROP('KeyFieldList','myField','cMyData')
> CURSORSETPROP('UpdateNameList','myField,'cMyData')
> CURSORSETPROP('FetchMemo',.T.,'cMyData')
>CURSORSETPROP('SendUpdates',.T.,'cERCA')
Previous
Reply
Map
View

Click here to load this message in the networking platform