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

Add Leading Zeros and format as number 1

Status
Not open for further replies.

YANKRAY

Technical User
Nov 7, 2003
283
CR 10.0

I have a field (string) that I need to convert to a number, but also have leading zeros.

For Example:

String:
99
101
8888
123456

Convert to number:
000099
000101
008888
123456

Any suggestion?

thanks,
Ray
 
By definiation 000099 is not a number, it is text. Making it look this way is easy:

Totext({yournumberfield},"000000")

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"If you have a big enough dictionary, just about everything is a word"
--Dave Barry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top