473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Errobject

Can anybody provide the code needed to pass the error object to a
function or subroutine.

TIA.
Nov 12 '05 #1
1 2562
rkc

<bc*****@yahoo.co.uk> wrote in message
news:ea********************************@4ax.com...
Can anybody provide the code needed to pass the error object to a
function or subroutine.


You mean like:

Sub CreateError()
On Error GoTo errHandler

Dim i As Long
Dim j As Long
i = 50

j = i \ 0

Exit Sub

errHandler:
Call ReadError(Err)
End Sub

Sub ReadError(e As ErrObject)
MsgBox e.Description, vbCritical, "Message from ReadError Sub routine."
End Sub

?
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: aaron | last post by:
On Winxp Pro I try to trap an error: On error resume next If (Err.Number <> 0) Then End sub End If but no matter what the case Err.Number = 0. When I was using visual basic 6.0 on a win2k...
2
by: Vilmar Brazão de Oliveira | last post by:
HI, How verify MIME type of file?? Which components should I use? Still now I couldn't find anything! OBS.: I don´t to check file extensions! Thanks,
0
by: Anushree Laturkar | last post by:
I am writing a C# app which communicates with a VB error handling COM component. This component needs as input, a VBA.ErrObject object. Is there any way that C# exceptions can be converted to...
15
by: Phill. W | last post by:
Is anyone writing VB.Net (2003) code /without/ referencing the Microsoft.VisualBasic namespace(?), regardless of whether its Import'ed or not? The Powers That Be here are trying to introduce a...
34
by: rodchar | last post by:
hey all, i have 2 winclient .EXEs; how do i start the 1st exe just to call the 2nd exe and let the 1st exe stop running altogether but let the 2nd exe continue running? thanks, rodchar
2
by: Slimane | last post by:
Hi, I try to use the ErrObject in one of my class Library. The class Library is written in VB .NET and the dll should be used in a VB6 application or a VB ..NET application. Here is a simple...
0
by: mike.varley1 | last post by:
Hi All We are getting the warning messages below several times a day in the app event logs on our Win2k3 server. Can anyone shed any light on the meaning\cause of the DC issue, especially: "This...
3
by: RSH | last post by:
Hi, I have a situation where I have created an object that contains fields,properties and functions. After creating the object I attempted to assign it to a session variable so i could retrieve...
11
code green
by: code green | last post by:
Having written a error handler class that inherits the Exception class, I am struggling what to do with unhandled exceptions. An unhandled exception static method within the error handler class...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.