Code Comments
Programming Forum and web based access to our favorite programming groups.Thanks Jason, but I am using C55, which does not have GetErrorCode method. Regards, Davor Insert > > Use GlobalErrors. However, due to the threaded nature of both the > ErrorClass and FileManager class, you need to ensure the FileManager > class in your thread has a reference to the ErrorClass in your thread. > So, anytime at the beginning of your procedure: > > Access:MyFile.SetErrors(GlobalErrors) > > Then, when you need to know the errorcode: > IF Access:MyFile.Insert() <> Level:Benign > IF GlobalErrors.GetErrorcode() = 40 > ! Duplicate Key > END > END > > I have never used this myself, but it should work, provided only a > single error occurs before the FileManager returns. > > Jason >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.