Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A simple error...
Message
 
 
À
17/06/2003 18:19:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00800984
Message ID:
00800985
Vues:
22
Ric,

You have to quote the text fields:

myresult = SQLEXEC(1,'Insert INTO phone (phon_phoneid, phon_personid, phon_type) VALUES (' + STR(ln_last + 1) + ', '+ STR(ln_1) + [, ']+ lc_bus + [')] )

And I assume you did not nave that excess , in your field list.

>Then I try and add a character variable into a character field and get a syntax error:
>
> myresult = SQLEXEC(1,'Insert INTO phone (phon_phoneid, phon_personid, , phon_type) VALUES (' + STR(ln_last + 1) + ;
> ', '+ STR(ln_1) + ', '+ lc_bus + ')')
>
>This doesn't work.
>
>
>Do you know how to format this correctly to get the variable value going through?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform