Catching errors.
Barry G. Sumpter
barrysum at bigpond.net.au
Sun Sep 6 16:54:17 CDT 2009
.
Catch Err as VException
MsgBox " Error: " + Str(vDB.ErrNumber) + " - " + vDB.ErrString + CRLF
+CRLF + "Error Opening or Finding DATABASE.vdb - Server Database: " + CRLF
+ " " + strDBPath
Quit
.
From: valentina-bounces at lists.macserve.net
[mailto:valentina-bounces at lists.macserve.net] On Behalf Of Greg Olson-Hyde
Sent: Monday, 7 September 2009 7:48 AM
To: Valentina Developers
Subject: Catching errors.
Hi,
Ruslan suggested I download:
V4RB_Reference_4_en.pdf
So, I did - very interesting - must have missed it in my roaming around the
Wiki.
I am slowly working through my code and changing it. I have existing error
code:
MsgBox "Database Error: " + str(EnglishDB.ErrorCode) + EndOfLine +
EndOfLine + EnglishDB.ErrorMessage
that I wish to change to Valentina - however the only error code I can find
is depreciated:
ErrNumber as Integer (r/o) // Number of the last error, 0 if OK.
[DEPRECATED]
ErrString as String(r/o) // String description of error. [DEPRECATED]
Also, is there a way to 'Rollback'? Or some alternative?
Cheers
Greg Olson-Hyde
Sydney Australia
2.8 GHz Quad-Core Mac Pro
Mac OS X 10.5.8
RB 2009 r2.1 Pro
Valentina Studio Pro 4.2 trial
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macserve.net/pipermail/valentina/attachments/20090907/18b3a072/attachment-0001.html
More information about the Valentina
mailing list