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

How to make the integer with no decimal and comma

Status
Not open for further replies.

EngJoo

Programmer
May 14, 2002
90
0
0
MY
greetings,

i write a formula like:-

totext({site.site_no})+'-'+totext({site.site_addr1})

and the result that i get is:-

30,314.00-Jalan Chan Sow Lin, KL

but result that i wish to get is

30314-Jalan Chan Sow Lin, KL

So is there a missing piece on my formula that i wrote?
Please advise.

i am using CR8.0
 
totext({site.site_no} , 0 , "") Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Hi.

The formula should be
totext({site.site_no}, 0, "")+'-'+totext({site.site_addr1})

the zero is the number of decimal places and the empty string will overide the default settings for the thousands separator.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top