Trap Valentina license time limit
Ivan Smahin
IvanSmahin at public.kherson.ua
Sat Jul 7 01:26:38 CDT 2007
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
More information about the Valentina
mailing list