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

Display a String with 0 supressed

Status
Not open for further replies.

luminous1975

Programmer
Nov 18, 2004
4
US
I need to display a stirng with Zero's not to be seen
for eg if the actual value of the string in the db is

0000031534 it should display
31534 on the report

not necessary the no of zeros wud be the same
it might also be less like this

0000314566 in which case it shud display
314566 on the report

Pls help
 
In Cruystal 8.5, I can use the ToNumber function

ToNumber({table.field}}


ToNumber("00123.45") returns 123.45

 
You can use 2 means that come to mind:

val({table.field})

or you can keep it as a string:

totext(val({table.field}),0,"")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top