Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need algorithm for cleaning check numbers
Message
 
 
À
12/04/2000 20:57:21
Jim Crowder
Progressive Group Alliance
Boise, Idaho, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00359011
Message ID:
00359111
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform