General information
Category:
Coding, syntax & commands
>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only