H
HSalim
Hi,
Are there any guildelines on how to use Err.Raise?
I'd like to do is to be able to raise a custom error - for example
"cash Balance below Zero" ...
I expect this will help in a couple of ways:
a. Raise error and handle it gracefully -
b. When exiting functions, cleanup before exiting rather than abruptly
exiting function when processing must end
As I understand it,
Err.Raise Number := vbObjectError + 1051, Source:= "SomeClass"
will allow me to use my own set of errors.
Because i am using third party barcode controls in my project, i wamt to
ensure that I don't inadvertently clash with an error number it might be
generating.
In other words, do the Source and the Number make it unique or
is uniqueness solely dependent on the number - in which case, what do I do?
Regards
HS
Are there any guildelines on how to use Err.Raise?
I'd like to do is to be able to raise a custom error - for example
"cash Balance below Zero" ...
I expect this will help in a couple of ways:
a. Raise error and handle it gracefully -
b. When exiting functions, cleanup before exiting rather than abruptly
exiting function when processing must end
As I understand it,
Err.Raise Number := vbObjectError + 1051, Source:= "SomeClass"
will allow me to use my own set of errors.
Because i am using third party barcode controls in my project, i wamt to
ensure that I don't inadvertently clash with an error number it might be
generating.
In other words, do the Source and the Number make it unique or
is uniqueness solely dependent on the number - in which case, what do I do?
Regards
HS