Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing Spaces from Charter String
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00290863
Message ID:
00291198
Vues:
22
Rather than all that, try:

CHRTRAN('abc 123', ' ', '')

This would return 'abc123'

HTH

>>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
Oct 31 = Dec 25
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform