Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
How To Check If DatabaseName Is Valid? |
Tue, Aug 7 2018 7:01 PM | Permanent Link |
Frederick Chin | I am trying to check if a database name is valid by doing the following:-
try Database.DatabaseName:='dbname'; except <do something> end; If 'dbname' does not exist, EWB throws up its own error message instead of executing <do something>. How do check if a database name is valid? -- Frederick |
Wed, Aug 8 2018 5:25 AM | Permanent Link |
Uli Becker | Frederick,
> I am trying to check if a database name is valid by doing the following:- > > try > Database.DatabaseName:='dbname'; > except > <do something> > end; > > If 'dbname' does not exist, EWB throws up its own error message instead of executing <do something>. Your exception handler doesn't work because there is no exception. The exception you are seeing is thrown when a dataset is loaded. You would have to create an OnLoadError handler and analyze the ErrorMessage/ErrorCode. Uli |
Wed, Aug 8 2018 10:56 AM | Permanent Link |
Frederick Chin | Uli,
/* Your exception handler doesn't work because there is no exception. The exception you are seeing is thrown when a dataset is loaded. You would have to create an OnLoadError handler and analyze the ErrorMessage/ErrorCode. */ Thanks. The message was appearing later in the file. I really miss the debugging features of Delphi. -- Frederick |
This web page was last updated on Tuesday, April 23, 2024 at 08:10 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |