Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace chr(13) + chr(10)
Message
 
 
To
30/03/2019 13:45:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667754
Message ID:
01667763
Views:
49
>>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.
>
>Your carriage return is being interpreted in cSqlCommand. Thus, this results in this.
>
>You might want to try to parameterize your values. So, they won't affect cSqlCommand.

Thank you. In this case parameterizing will require too many changes. I will have to figure another solution.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform