Thanks Guys you are all correct its a ',' problem. Cheers I've learnt
something new. Chocolate fishes all round.



> -----Original Message-----
> From: Max Nilson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 2 October 2003 10:38 a.m.
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Spanish Problem
> 
> 
> [EMAIL PROTECTED] asked:
> 
> > The above function extracts 287.472 which ends up as 287 in Depth
> > 
> > Any ideas why this may fail on a Spanish OS. 
> 
> It could be because Spanish (like many European counties) 
> uses , (comma) as
> the decimal seperator, and the numbers with . (dot) as a 
> seperator get the
> conversion code all confused. By default the connversion code uses
> regionalised characters to recognise bits of the number being 
> converted, and
> having a "wrong" seperator certainly matches with what the 
> output is, as the
> StrToFloat simply works through the string until it gets to 
> an unrecognised
> character and them stops.
> 
> Cheers, Max.
> 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to