Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table modification
Message
From
18/09/2007 15:01:24
 
 
To
18/09/2007 14:41:29
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01254889
Message ID:
01255244
Views:
16
>Sergey,
>
>Take a look at this....
>
>
>http://www.rns-sheppick.com/ronnie1.jpg

In the WHERE clause at the end:

- if t1.vnd_id is numeric, then it should be
WHERE t1.vnd_id > 1
* note that the 1 is not quoted above - quoting turns it into a character string
- if t1.vnd_id is actually character, your code doesn't give a syntax error but it might not be doing what you would expect. In that case you need to left-pad both the field contents and your comparison string with either zeroes or spaces. Suppose t1.vnd_id is C( 4 ):
* in the Command window:
? "2" > "1"        && .T.
? "2" > "12"       && .T.
? "0002" > "0012"  && .F.
? "   2" > "  12"  && .F.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform