Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CR & LF through ODBC
Message
De
27/08/1999 15:06:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
CR & LF through ODBC
Divers
Thread ID:
00258591
Message ID:
00258591
Vues:
52
I've come across a problem trying to update a memo field through ODBC.

l_cNotes="This is test one"+CHR(10)+CHR(13)+"This is test two"
l_cSQL="UPDATE chronology SET cchronitem='"+l_cNotes+"' WHERE nchronkey=1"
iResult=SQLEXEC(g_cSystemConnect,l_cSQL,l_cCursor)

The update fails with this message:

"Command contains unrecognized phrase/keyword"

Without the CR & LF it works fine. Is there a function to encode the CR & LF?

TIA,

/Chris
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform