Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC not support CHR(0)
Message
From
02/10/2003 11:02:48
 
 
To
02/10/2003 05:05:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00834136
Message ID:
00834281
Views:
43
>Hi,
>
>if you put a CHR(0) on SPT string, VFP send to ODBC a wrong string:
>
>?Sqlexec(hconnect,"SELECT 'A"+CHR(1)+"'")
>?Sqlexec(hconnect,"SELECT 'A"+CHR(0)+"'") && <--- errore ODBC
>
>
>If VFP build the string with a parameters fields ODBC haven't problem.
>
>The problem is on VFP SPT parser, it cut the string when found a CHR(0) char
>( VFP C routine use z-string on input).
>
>Fabio

Fabio,

Can you pass it as an expression so that it is evaluated later ?
?Sqlexec(hconnect,"SELECT 'A'+CHR(0)")
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform