Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table modification
Message
De
18/09/2007 15:01:24
 
 
À
18/09/2007 14:41:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01254889
Message ID:
01255244
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform