Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Types
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00465691
Message ID:
00465754
Views:
12
>Thanks Larry,
>
>I tried text, but didnt work when I insert a record with following.
>
>~ ` ! @ # $ % ^ & * ( ) _ + | \ / "
>' : ; ? > < , +
> 123456789
>abcdefghijklmnopqrstuvwxyz

That's because of the single and double quotes embedded in the string. You could convert these to their ASCII equivalent or use a variable for this.
lcstring = [~ ` ! @ # $ % ^ & * ( ) _ + |  \ / " >' : ; ? > < , + > 123456789] + ;
[ abcdefghijklmnopqrstuvwxyz]
=sqlexec(lnconn,'insert into mytable (varfield) values (?lcstring)')
Both nvarchar and varchar fields can have all 256 ASCII characters in it. It's just a matter of bypassing the the SQL delimiter issues.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform