Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection handle error
Message
De
03/08/2011 05:20:41
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
02/08/2011 13:44:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01519893
Message ID:
01520031
Vues:
39
>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform