Options

Leading zero question

JeffCichockiJeffCichocki Member Posts: 3
I want to format a number on a report to include leading zeroes to make the number that is displayed a fixed length. I can not seem to find anything that says how to do that. I have found things for padding to the right, but not a variable to the left.

Can anyone point me in the right direction?

Comments

  • Options
    jmjm Member Posts: 156
    Hi,

    try it with
    VarString := FORMAT(VarInt,0,'<Integer,8><Filler Character,0>'):
    

    br
    Josef Metz
    br
    Josef Metz
  • Options
    JeffCichockiJeffCichocki Member Posts: 3
    Thank you very much. It works perfectly.
Sign In or Register to comment.