Forum Post: RE: Find first/Last failed for table (565) when used in a METHOD of a CLASS

  • Thread starter Thread starter Thomas Mercer-Hursh
  • Start date Start date
Status
Not open for further replies.
T

Thomas Mercer-Hursh

Guest
While this doesn't address the reason for the failure in your specific case, the first thing I would suggest is removing any logic from the constructor which can possibly fail. If it fails, you are left without a class instance which can be messy. Much better is to limit the constructor to the minimum necessary to have a valid instance of the class and then have an Initialize() method to do all the setup.

Continue reading...
 
Status
Not open for further replies.
Back
Top