Error Trapping

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Hans Wolfgang
Newbie
Newbie
Posts: 58
Joined: Fri Nov 15, 2002 12:00 am
Location: Naples, FL
Contact:

Error Trapping

Post by Hans Wolfgang » Sun Nov 01, 2009 8:43 pm

Please point me to sample code, or the correct tChart component/event, where one can trap the following errors:

A file hardwired into a tSeriesTextSource and/or in a txxxSeries is missing at program startup.

Data contained in the text file are not in the expected format.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Error Trapping

Post by Narcís » Mon Nov 02, 2009 1:13 pm

Hi Hans,
A file hardwired into a tSeriesTextSource and/or in a txxxSeries is missing at program startup.
Before loading the file in the TSeriesTextSource object you can check that it exists (using FileExists method, for example) and don't continue with the loading process if it doesn't exists.
Data contained in the text file are not in the expected format.
I'm afraid there's no specific method for that. You could implement TSeriesTextSource code loading in a try...except statement and implement your own error handling there. If you are a source code customer you could also customize TSeriesTextSource to behave as you request.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply