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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show leading zeroes

Status
Not open for further replies.

LenaS

Technical User
Joined
Nov 28, 2000
Messages
98
Location
US
How do I show leading zeros on a report or form?
 
Use the PADL function, as in:

[tt]padl(ltrim(str(27)), 10, '0')[/tt]

will pad the number 27 with 8 leading zeros (10 characters overall). Robert Bradley
teaser.jpg

 
Thanks. I'lll try that.
 
On reports and forms you can also use the FORMAT property (=L) to display leading zeroes automatically.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top