Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Matrix rate
Message
De
29/06/1999 11:15:04
 
 
À
29/06/1999 11:06:03
Dovi Gilberd
Dovtware Consulting Inc
Miami, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00233562
Message ID:
00235283
Vues:
30
>how do i write one case for
>if the numebr is less than 7 digits but is not 411 or 911...
>to giveme 0.0
>

Put the 411 and 911 code that works in before this, and add this after them, but before the OTHERWISE. The DO CASE...ENDCASE is processed sequentially top to bottom, and you fall out of the block once you've satisfied a condition tested by a CASE.
   CASE LEN(ALLTRIM(CHRTRAN(view1.dialednr, '-',''))) < 7
       lnResult = 0
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform