Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing blanks in a field
Message
De
21/12/2004 10:03:57
 
 
À
21/12/2004 06:24:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00970912
Message ID:
00970980
Vues:
22
>>I have a field in a table whereby users will enter the name of a supplier. A supplier name could be 'Le Poutre'. In my query I want to remove the spaces in the field. How can I do this so the result would be 'LePoutre' instead of 'Le Poutre'.
>>
>>Mnay Thanks in advance
>Neil
>
>Try
>
>SELECT STRTRAN(fieldname," ","") as fieldname FROM tablename
>
>Nick Mason


this might or might not work.
if the first record contains only a 'a' for example the width of the column will be 1 even if the content of this field in the second record is 159 charcters wide!!!!

Peter
Peter Cortiel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform