Re: VB6 Raise Error w/ Custom Description being replaced w/ desc for e
- From: Bob O`Bob <filterbob@xxxxxxxxxxxxxxx>
- Date: Fri, 26 Jan 2007 11:02:24 -0800
Robb wrote:
I'm using VB 6.0, Service Pack 6, on an XP machine.
I'm raising an error with a custom Description in a DLL.
Err.Rasie 106,"MySource","My Custom Description"
When the invoking DLL catches the error the custom description has been replaced with the default VB description for the error number I raised. And the Err.Source is blank.
Err.Number = 106
Err.Source = blank
Err.Description = Application-defined or Object-defined error
Any ideas as to why my "custom description" is being lost?
You can't pick just any number as if from a hat.
If you simply read the help entry for the Raise method, you'll see.
Bob
--
.
- Follow-Ups:
- Prev by Date: Re: VB6 Raise Error w/ Custom Description being replaced w/ desc for e
- Next by Date: Re: VB6 Raise Error w/ Custom Description being replaced w/ desc f
- Previous by thread: Re: VB6 Raise Error w/ Custom Description being replaced w/ desc for e
- Next by thread: Re: VB6 Raise Error w/ Custom Description being replaced w/ desc f
- Index(es):
Relevant Pages
|