Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enelver des caractere
Message
 
To
07/03/2003 09:49:41
Eric Gauthier
Transcontinental Interweb (Montreal)
Boucherville, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00762702
Message ID:
00762758
Views:
13
This message has been marked as the solution to the initial question of the thread.
>Bonjour
>Je ne me souviens plus de ou des commandes pour enlever des caractères.
>
>Voici le code
>
>a = "0001"
>b = "0100"
>c = "0560"
>
>Pour chaque variable je veux enlever les 0 pour que le résultat donne
>
>a = "1"
>b = "100"
>c = "560"
>
>j'ai penser utilisé alltrim mais c'est juste pour des blancs
>donc j'ai voulu remplacer les 0 par des " " mais je ne sais pas comment.
>ou, autre option, remplacer les 0 par des "".
>
>Quelqu'un peu m'aider??


Salut,

Transforme ta chaine de caractères en numérique avant de le remettre en chaine.

a = ALLTRIM(STR(VAL(a)))
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform