Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace chr(13) + chr(10)
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667754
Message ID:
01667755
Vues:
76
The error's not because character field cannot handle chr(13) + chr(10) but by the way you build insert command

>When inserting a string into a VFP table (using INSERT INTO command) and a string contains characters chr(13) and chr(10), I get error: "Command contains unrecognized phrase/keyword." The SQL Server DB has no such a problem.
>
>Here is the sample text of the string:
>
>cStr2Insert = "line 1" + chr(13) + chr(10) + "line2"
>
>
>What should I replace the chr(13) and chr(10) with, when creating such a string for VFP DB?
>
>TIA
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform