Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert && into a remote view to SQL
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00928083
Message ID:
00929890
Views:
10
Jim,

VFP treats double ampersand && in a string literal as a beginning of inline comment. For example,
? 'I 240 && Walnut Groove'
The easiest way, as Aleksey suggested, is split literal so each part has only one '&'.
? 'I 240 &' + '& Walnut Groove'
>I am trying to insert a string into a SQL table through a remote view. The string looks similar to this:
>
>insert into mytable (street) values ('I 240 && Walnut Groove')
>
>
>I am assuming that VFP considers the && as a Comment line. Is there a way to work around this and pass the string?
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform