Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you remove blanks within a field
Message
From
03/09/1998 09:13:32
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
01/09/1998 11:13:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00131900
Message ID:
00132731
Views:
15
>>Is there a quick way to remove blanks within a field? For example PART NUMBER = 'TRG 011 4TGH 77K' to become 'TRG0114TGH77K'
>>Thanks.
>
>REPLACE ALL partnumber WITH strtran(partnumber," ","")

Wouldn't the ChrTran() function be (at least theoretically) faster for such things. It sure is when you have to filter out several unneeded characters, like turning a 'TRG(011)-4/TG H+77K' to become 'TRG0114TGH77K', you can

REPLACE ALL partnumber WITH ChrTran(partnumber," +-/()","")

...but for removing just spaces, I wonder. Also not sure what would be a proper test.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform