Grid - Registered Users - Helpdesk
decimalseparator problem
Thread Starter: Rob van Tour Started: 5/25/2008 8:37 AM UTC
Replies: 3
decimalseparator problem

windows decimalseparator =   ,   komma

delphi separator set as :  decimalseparator :='.'     dot

if input in cell  =1/2 then output 0.5  that is OK

if input in cell 0.5 then the result is 5

How can this problem be solved

 

 

 

 



 

Re: decimalseparator problem
Hello Rob,

This specific problem appears on Dutch locale.

Try to patch the procedure DoVarCast as follows.

Lines 4361 thru 4365 (ProfGrid.pas version 3.4.4.8), which are currently
------
   if TryStrToFloat(WS, D) then
   begin
     Dest := vargDest;
     Exit
   end;
------
should be changed to
------
   if TryStrToFloat(WS, D) then
   begin
     if D <> vargDest then
       Dest := D
     else
       Dest := vargDest;
     Exit
   end;
------


-Nicholas
Re: decimalseparator problem

Hi Nicholas,

Will this also be fixed in version 3.4.4.9. ( including the rounding problem).

In that case I wait for the new version.

Ronald



 

Re: decimalseparator problem
Will this also be fixed in version 3.4.4.9.

Yes.


-Nicholas