Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing Spaces from Charter String
Message
De
12/11/1999 23:14:34
 
 
À
12/11/1999 23:01:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00290863
Message ID:
00290865
Vues:
14
>Using VFP6.0 SP3
>
>I'm tring to remove a space from a charter string exp("ABC 12345")
>!ISDIGIT copies the space
>ISDIGIT doen't copy the "ABC"
>
>TIA

Found it!

FOR nCnt = 1 TO 10
cCharacter = SUBSTR(cTest, nCnt, 1)
IF ISDIGIT(cCharacter)
cNumOnly = cNumOnly + cCharacter
ELSE
IF ISALPHA(cCharacter)
cNumOnly = cNumOnly + cCharacter
ENDIF
ENDIF
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform