Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filler Zeros in CR9 1

Status
Not open for further replies.

szaunbr

Technical User
Jul 5, 2006
50
US
I am working on a report and I need a number field to be exactly 6 digits long. If the number is smaller than 6 digits, I need filler zeros before it.

How do I do this?
 
One approach is to use:

whileprintingrecords;
Stringvar MyFld:= totext({table.value},0,"");
picture(MyFld,"000000")

Looks about right...

-k
 
You can use:

totext({table.number},"000000")

-LB
 
Thanks. That works.

Just wondering though, is there any way to do this without changing it to text?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top