Skip to Content
0
Former Member
Apr 22, 2009 at 01:49 PM

Format changes when running web app

15 Views

Hi All,

I use the following code to make a time:

stringvar minutes;

stringvar seconds;

numberVar M:=(Remainder(Truncate (sum(,)/(60)),60)); numberVar S:=(Remainder(Truncate (sum(,)),60)); if(M<10)then minutes:="0"&totext(M) else minutes:=totext(M); if(S<10)then seconds:="0"&totext(S) else seconds:=totext(S); CStr(int(Truncate(sum(,)/(60*60))),"##") & ":" &minutes&":"&seconds;

In CR 2008, it displays the time correctly as 20:05:10 for example. When I deploy the web app, the time then appears as 20:05.00:10.00

Does anyone know why the web app is appending the ".00" when printing the report in the Crystal Viewer?

I am using VS 2008 with CR 2008 SP1.

Thank you in advance.