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.
Error Trapping
-
- Newbie
- Posts: 58
- Joined: Fri Nov 15, 2002 12:00 am
- Location: Naples, FL
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Error Trapping
Hi Hans,
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.A file hardwired into a tSeriesTextSource and/or in a txxxSeries is missing at program startup.
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.Data contained in the text file are not in the expected format.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |