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
SeriesTextSource doesn't have DecimalSeparator in 8.04
Re: SeriesTextSource doesn't have DecimalSeparator in 8.04
Hi Tim,
What SO and IDE are you using? I think that this should work on any Windows and any delphi IDE:
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:='/';
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: SeriesTextSource doesn't have DecimalSeparator in 8.04
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
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
Hi Tim,
I'm glad to help!
I'm glad to help!
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |