Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to an Access Database
Message
De
16/04/2003 11:12:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/04/2003 10:02:23
Sony Joseph
Dovenmuehle Mortgage Inc
Schaumburg, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00778022
Message ID:
00778368
Vues:
20
>Your solution seemed simpled and elegant. However, when I use this snippet, I don't get results back from the SQL Statement. There is no Error either.
>
>Any clues..?
>
>TIA

With SQLExec (except some specific ones) you don't get any immediate error. Check return valuye, if it's lt 0 then check for error. ie:
if SQLExec(lnHandle, lcSQL, lcResultCursorName ) < 0
  CheckError(lcSQL)
*...

Function CheckError
Lparameters tcSQL
local ix,lcError
local array arrCheck
lcError=tcSQL+chr(13)
Aerror(arrCheck)
For ix=1 to 7
  lcError = lcError+trans( arrCheck [ix])+ chr(13)
Endfor
Messagebox(lcError,0,'Error def.')
return
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform