Page 1 of 1
Error Trapping
Posted: Sun Nov 01, 2009 8:43 pm
by 5890703
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.
Re: Error Trapping
Posted: Mon Nov 02, 2009 1:13 pm
by narcis
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.