Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Equal to or less than, equal to or greater than
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01665734
Message ID:
01665739
Vues:
69
>>>Did you know you can use the equal to or less than and equal to or greater than operators in VFP to represent less than or equal to and greater than or equal to, respectively?
>>>
>>>I didn't. I've written a VFP source code parser and was going through various source code examples and came across that comparison operator in code today and it works in the command window:
>>>
>>>
WAIT WINDOW (5 <= 7)  && Less than or equal to
>>>WAIT WINDOW (5 =< 7)  && Equal to or less than
>>>
>>>WAIT WINDOW (5 >= 7)  && Greater than or equal to
>>>WAIT WINDOW (5 => 7)  && Equal to or greater than
>>>
>>>Does not work with =! though. :-) The things I still learn about VFP ... not all subtlety and nuance.
>>
>>Off course you have to keep in mind that this might be used in an SQL statement, where 2 of these will not work.
>
>That's actually where I found it (redacted):
>
>
UPDATE (table) SET field = value WHERE YEAR(field) =< testYyyy AND (posted)
Correct '=' is always first, which to me for some reason does not make sense.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform