Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matrix rate
Message
From
29/06/1999 11:15:04
 
 
To
29/06/1999 11:06:03
Dovi Gilberd
Dovtware Consulting Inc
Miami, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00233562
Message ID:
00235283
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform