Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RFC - code style
Message
De
10/05/2000 09:04:42
 
 
À
10/05/2000 08:38:58
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00368035
Message ID:
00368047
Vues:
17
>I have a need to see if a value falls into several possible ranges. is used the following code:
>inrange = Inlist(.T.,between(chkval,1.75,2.0),between(chkval,2.8,3.2),(etc.) )
>
>It works and is pretty easy to read. I read that you shouldn't use IIF (or inlist) in an SQL Select. Is there another way to do this?

WHERE (ChkVal BETWEEN 1.75 AND 2.0) OR (ChkVal BETWEEN 2.8 AND 3.2)
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform