For Programmers: Free Programming Magazines  


Home > Archive > Clarion > March 2004 > Re: FileManager and errorcode









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: FileManager and errorcode
Davor Maric

2004-03-26, 11:01 pm

Thanks Jason,
but I am using C55, which does not have GetErrorCode method.

Regards,
Davor

Insert[color=darkred]
>
> 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
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com