473,387 Members | 1,574 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,387 software developers and data experts.

catch error in VB

Hello,
I am using vb.net.
How can I catch an error/exception in program.

In C it :
try
{
}
catch
{ ...
}

How is it on VB.NET ?

Thanks :)
Nov 20 '05 #1
5 2517
"Mr. x" <a@b.com> wrote in news:3f********@news.012.net.il:
try
{
}
catch
{ ...
}

How is it on VB.NET ?


Try

Catch

Finally

End Try
Nov 20 '05 #2
Hello,

"Mr. x" <a@b.com> schrieb:
I am using vb.net.
How can I catch an error/exception in program.

In C it :
try
{
}
catch
{ ...
}

How is it on VB.NET ?


\\\
Try
...
Catch
...
End Try
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #3
"Mr. x" <a@b.com> schrieb
Hello,
I am using vb.net.
How can I catch an error/exception in program.

In C it :
try
{
}
catch
{ ...
}

How is it on VB.NET ?

Thanks :)

<F1>
VS.Net
VB and C#
Reference
VB language
Tour
-> Exception handling

--
Armin

Nov 20 '05 #4
That was a very very cool post!
"Armin Zingler" <az*******@freenet.de> wrote in message
news:uU**************@TK2MSFTNGP11.phx.gbl...
"Mr. x" <a@b.com> schrieb
Hello,
I am using vb.net.
How can I catch an error/exception in program.

In C it :
try
{
}
catch
{ ...
}

How is it on VB.NET ?

Thanks :)

<F1>
VS.Net
VB and C#
Reference
VB language
Tour
-> Exception handling

--
Armin

Nov 20 '05 #5
"William Ryan" <do********@comcast.nospam.net> schrieb
That was a very very cool post!


Cool? Why?
--
Armin

Nov 20 '05 #6

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

Similar topics

11
by: kaeli | last post by:
Hey all, I'd like to start using the try/catch construct in some scripts. Older browsers don't support this. What's the best way to test for support for this construct so it doesn't kill...
7
by: Arjen | last post by:
Hi, I'm doing this: try { try { } catch(Exception ex){ throw;
23
by: VB Programmer | last post by:
Variable scope doesn't make sense to me when it comes to Try Catch Finally. Example: In order to close/dispose a db connection you have to dim the connection outside of the Try Catch Finally...
3
by: will | last post by:
Hi all. I've got an question about how to catch an exception. In Page_Load, I place a DataGrid, dg1, into edit mode. This will call the method called GenericGridEvent. GenericGridEvent will call...
32
by: cj | last post by:
Another wish of mine. I wish there was a way in the Try Catch structure to say if there wasn't an error to do something. Like an else statement. Try Catch Else Finally. Also because I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.