Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection handle error
Message
From
03/08/2011 05:20:41
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
02/08/2011 13:44:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01519893
Message ID:
01520031
Views:
38
>>>The connection handle is valid and =16
>>
>>Than, what is the problem?
>
>
> when i run the code it points to this line and says Data mismatch
>
>IF SQLExec(m.Handle, 'SELECT * FROM useraccesscon', 'User')

SQLEXEC() doesn't return .t. or .f., it returns the number of cursors it got. So you better wrap your calls like this:
lnRet=sqlexec(handle, "....", "alias")
if lnRet<0
* got an error
   aerror(ee)
   * do something about it
endif

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform