crystal reports: cast number to string

msmeth
10-20-2004, 12:25 PM
I have the following return in a function in Crystal Reports:



numberVar InitWt ;

cstr("*" & cstr(InitWt))



The problem is that its showing the InitWt part with a comma and 2 decimal places like this: * 10,000.00

How do I fix this so it just shows: * 10000 ?

MKoslof
10-20-2004, 06:10 PM
Have you tried first sending the numeric value to the toText() method...which casts it into string. Then you can strip out any invalid characters such as "," and periods.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum