Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need algorithm for cleaning check numbers
Message
 
 
To
12/04/2000 20:57:21
Jim Crowder
Progressive Group Alliance
Boise, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00359011
Message ID:
00359111
Views:
12
Jim,

The single chrtran() call is tons faster than looping through each character and making two function calls.

>How about :
>*--- make sure we have digits only for the Phone Number
>IF !EMPTY(nCharPhone)
>FOR i = 1 TO nCharPhone
>	IF !ISDIGIT(SUBSTR(cPhone,i,1))
>		MESSAGEBOX ("Phone number should contain the numbers 0-9 only!")
>		RETURN
>	ENDIF
>NEXT
>ENDIF
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform