Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL LIKE command
Message
From
17/08/1998 13:11:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/08/1998 13:05:03
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00127474
Message ID:
00127478
Views:
32
>I am using a SQL-LIKE with the percent wild cards. Findtext is a variable. This select statment does not work. Does anyone know why?
>Is there another way to do the same thing?
>
>findtext = thisform.txtsearch.value
>select * from task;
>where description LIKE %findtext%
>
>Thanks
>
>Jim
It would be "%"+findtext+"%" and do not forget alltrim(thisform.txtsearch.value) otherwise generally you wouldn't find anything.
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
Reply
Map
View

Click here to load this message in the networking platform