Page 1 of 1

SeriesTextSource doesn't have DecimalSeparator in 8.04

Posted: Wed Oct 21, 2009 6:43 am
by 10547875
Hi!

I am trying to use the SeriesTextSource component (version 8.04). Following your Importing text data from .Dat or .TXT files document.
The property DecimalSeparator seems to be not available in 8.04, but would be important for us since we are writing out the file with "." even
on systems with locale settings ","... How does the component work now? Does it use locale setting to determine the decimal separator? If yes, how can we force it to use "."?

Thanks.

Br, Tim

Re: SeriesTextSource doesn't have DecimalSeparator in 8.04

Posted: Wed Oct 21, 2009 8:05 am
by yeray
Hi Tim,

What SO and IDE are you using? I think that this should work on any Windows and any delphi IDE:

Code: Select all

  DecimalSeparator:='.';
  SeriesTextSource1.FieldSeparator:='/';

Re: SeriesTextSource doesn't have DecimalSeparator in 8.04

Posted: Wed Oct 21, 2009 8:25 am
by 10547875
You are correct. For some reason I was checking this in the class because the example code
was showing:

With SeriesTextSource1 do
begin
Fields.Clear;
AddField('X',1);
AddField('Y',2);
FieldSeparator := ' ';
DecimalSeparator := '.';
FileName := 'test.dat';
Series := Series1;
Active := True;
end;

Br, Tim

Re: SeriesTextSource doesn't have DecimalSeparator in 8.04

Posted: Wed Oct 21, 2009 8:36 am
by yeray
Hi Tim,

I'm glad to help! :D