General information
Category:
Coding, syntax & commands
Title:
COUNTING CHARACTERS IN A VARIABLE
I am trying to create an ascii file to send direct payments to a bank. One of my problems is that some fields have to be
filled with leading zeros. If I place an amount in a variable like this -
First I multiply the amount by 100 to convert it to cents,
then place it in a variable - store left(str(amount), 10) to efttotal
I then need to know how many zeros to place in front as the field has to be filled with leading zeros.
156.55 should end up looking like 0000015655
Can anyone help?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only