Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Good ADO book for VFP 9
Message
From
03/07/2006 05:00:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/07/2006 23:02:59
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01132448
Message ID:
01133368
Views:
24
>Cetin,
>Example:-
>lcstring = "Lee's ABC Store,USA" (Sometimes could be double quote)
>spt = sqlexec(lnhandle,"select * from tablename where field like %"+lcstring)
>Problem caused both by the comman and single quote.
>Yau

Use parameters as I said and it won't be a problem.
lcstring = "%Lee's ABC Store,USA" && (Sometimes could be double quote)
* or:
* lcString = [This has " and ' in it]
spt = sqlexec(lnhandle,"select * from tablename where [field] like ?m.lcstring","myResult")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform