Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you remove blanks within a field
Message
De
03/09/1998 09:13:32
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
01/09/1998 11:13:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00131900
Message ID:
00132731
Vues:
14
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform