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