SeriesTextSource doesn't have DecimalSeparator in 8.04

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
timhamel
Newbie
Newbie
Posts: 34
Joined: Mon Dec 31, 2007 12:00 am

SeriesTextSource doesn't have DecimalSeparator in 8.04

Post by timhamel » Wed Oct 21, 2009 6:43 am

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: SeriesTextSource doesn't have DecimalSeparator in 8.04

Post by Yeray » Wed Oct 21, 2009 8:05 am

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:='/';
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

timhamel
Newbie
Newbie
Posts: 34
Joined: Mon Dec 31, 2007 12:00 am

Re: SeriesTextSource doesn't have DecimalSeparator in 8.04

Post by timhamel » Wed Oct 21, 2009 8:25 am

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

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: SeriesTextSource doesn't have DecimalSeparator in 8.04

Post by Yeray » Wed Oct 21, 2009 8:36 am

Hi Tim,

I'm glad to help! :D
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply