|
View previous topic :: View next topic
|
| Author |
Message |
poshabrar
New User
.jpg)
Joined: 10 Jul 2006 Posts: 23
|
|
|
|
I have a field with values 12,234,123 i need to convert this into 12234123 format(eliminating the commas).. How will I do this in eazytrieve ?
and also how to supress leading zeros in easytrieve if the value which i am moving in is a comp variable to a host variable. |
|
| Back to top |
|
 |
kratos86
Active User

Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
| Quote: |
have a field with values 12,234,123 i need to convert this into 12234123 format(eliminating the commas).. How will I do this in eazytrieve ?
|
If the input is in same format of what u showed. Declare a group variable to read the input into peices and move those values to o/p excluding the commas
| Quote: |
| and also how to supress leading zeros in easytrieve if the value which i am moving in is a comp variable to a host variable. |
Use edit MASK option to suppress the leading zeros |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Is this now working?
If not yet, you might consider redefining the "input" as an array of 1-byte entries and loop thru the array from the right building the value you want. This will help if the length is not constant. . . |
|
| Back to top |
|
 |
|
|