Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Length issue with VFP6 and ODBC
Message
De
11/04/2001 10:47:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00494412
Message ID:
00494424
Vues:
23
>I've run into an issue of Fox not allowing me to write a sqlexec() command that is longer than 255 characters. With the excepting of creating multiple sqlexec() commands to complete the odbc call, is there anyway to do it in just one statement, regardless of length???
>
>Thanks,

Hi Shane,

What I've done to resolve this problem is to split the statement into several shorter strings. Then add all these shorter strings into 1 string that I will use in the actual SQLEXEC(). It worked, though I can't explain why.

csql1 = "SELECT ...."

csql2 = "FROM ...."

csql3 = "WHERE ..."

csqlstatement = csql1 + csql2 + csql3

nhandle = SQLEXEC(nhndl, csqlstatement, 'cursor')

HTH
Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform