Trap Valentina license time limit

Barry G. Sumpter BarrySum at BigPond.Net.AU
Sat Jul 7 02:28:16 CDT 2007


Yes, thanks for that the 
Exception exc as VException

Is easy enough to understand.

The context was related to the database erroring out and me not knowing what
the error was and once the error was found then what other errors should I
be checking for in the same context etc.

And thinking why not just have a single routine that checks thru all errors
and displays a standard format dialog etc.



-----Original Message-----
From: valentina-bounces at lists.macserve.net
[mailto:valentina-bounces at lists.macserve.net] On Behalf Of Ivan Smahin
Sent: Saturday, 7 July 2007 4:27 PM
To: Valentina Developers
Subject: Re[2]: Trap Valentina license time limit

Hello Barry,

Friday, July 6, 2007, 8:26:21 PM, you wrote:

BGS> The concept had escaped me without proper documentation and examples.
BGS> There are quite a few of these constants in the XML file.

BGS> How am I to know that this exact constant should be trapped is a
certain
BGS> situation?

BGS> Am I to check each one for each vCommand?
BGS>  
BGS> This trial and error approach is time consuming.

BGS> Hmm, I wonder, does anyone have a methodology for a professional
standard
BGS> error trapping routine?

BGS> Something like:

BGS> Try

BGS> Catch vErr as vException
BGS>    My_vErrDesc = My_vErrDesc_Retrieved_from_XML(vErr)
BGS>    Show_My_vErrDesc_DialogBox(My_vErrDesc)

BGS> End try


BGS> Where the DialogBox has options to Log the error to a file, send an
email to
BGS> product support, ignore, or terminate execution, etc.


Please take a look in our examples.

You can do something like this:
Exception exc as VException
  stErrCode.Text = Str( exc.ErrorNumber )
  stErrStr.Text = exc.Message

So  you  have  caught any Valentina exception. And you are able to get
err code and message from that one.


-- 
Best regards,
Ivan Smahin 
Senior Software Engineer
Paradigma Software, Inc
Valentina - The Ultra-Fast Database
http://www.valentina-db.com

_______________________________________________
Valentina mailing list
Valentina at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list