Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Like in view designer not finding records
Message
From
29/06/1999 18:57:22
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00235564
Message ID:
00235592
Views:
19
>In my view designer on the filter tab I set my criteria to 'like'. When I search for example the letter 'O' to find state beginning with 'O', I don't get anything, but yet there are state such as Oklahoma, Ohio etc.. in my table. Can anyone help me please?
>

You need to use the proper templating for the LIKE clause; take a look at the documentation for the SELECT SQL topic in the on-line help. LIKE uses a wild carding scheme; the % matches 0 or more undefined characters, and an _ matches exactly one character. in a LIKE clause:

O% matches anything beginning with "O"
_O% matches any string whose second character is "O"
%O matches anything that ends with "O"
O%K_ matches any string beginning with "O", and whose second to last character is "K"

>Nick Patel
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform