Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing Spaces from Charter String
Message
From
12/11/1999 23:14:34
 
 
To
12/11/1999 23:01:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00290863
Message ID:
00290865
Views:
16
>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
Map
View

Click here to load this message in the networking platform