Home > Archive > MS SQL Server ODBC > August 2005 > see last error in VB (VS .NET)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author see last error in VB (VS .NET)
Eitan M

2005-08-11, 1:24 pm

Hello,
I am using VB (VS .NET)
Also, I am using microsoft application block.
After calling and running a database command (select)
I get an exception.
I want to catch and display this error string.

How can I do that ?

Thanks :)


Sue Hoegemeier

2005-08-14, 8:23 pm

You use a try..catch block. Look up the topic
Try-catch exception handling
in VS.Net help. You would also want to post VB.Net question
in one of the dot net newsgroups. You can use:
microsoft.public.dotnet.languages.vb

-Sue

On Thu, 11 Aug 2005 16:28:16 +0200, "Eitan M"
< no_spam_please@nospa
m_please.com> wrote:

>Hello,
>I am using VB (VS .NET)
>Also, I am using microsoft application block.
>After calling and running a database command (select)
>I get an exception.
>I want to catch and display this error string.
>
>How can I do that ?
>
>Thanks :)
>


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com