Click here to Skip to main content
15,922,894 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Use Interface imported from COM dll Pin
Dave Kreskowiak25-Jan-09 5:07
mveDave Kreskowiak25-Jan-09 5:07 
QuestionRe: Use Interface imported from COM dll Pin
o m n i25-Jan-09 5:29
o m n i25-Jan-09 5:29 
QuestionHow to submit vb.net form Pin
Riyaz.R24-Jan-09 10:46
Riyaz.R24-Jan-09 10:46 
AnswerRe: How to submit vb.net form Pin
Dave Kreskowiak24-Jan-09 11:03
mveDave Kreskowiak24-Jan-09 11:03 
AnswerRe: How to submit vb.net form Pin
Ashutosh Phoujdar26-Jan-09 19:49
Ashutosh Phoujdar26-Jan-09 19:49 
QuestionNeed Help! Pin
ShayanTanwir24-Jan-09 7:00
ShayanTanwir24-Jan-09 7:00 
AnswerRe: Need Help! Pin
Dave Kreskowiak24-Jan-09 11:06
mveDave Kreskowiak24-Jan-09 11:06 
QuestionError handler only works once in loop Pin
timb11124-Jan-09 5:50
timb11124-Jan-09 5:50 
I'm looping through a collection of items and I'm deliberately creating an error, just to test the error handler.

The error trap works correctly for the first item in the FOR..NEXT loop, but on the second item it doesn't work and instead Outlook brings up an error message "type mismatch".

Of course I understand the error, but why doesn't the error trap work the second time around?

----------------------------------
Set ol = CreateObject("Outlook.Application")
Set myNameSpace = ol.Application.GetNamespace("MAPI")
Set myFolder = myNameSpace.Folders("myNotes")
Dim myInteger As Integer
Dim myItems As Outlook.Items
Set myItems = myFolder.Items
For Each myitem In myItems
   On Error GoTo myErrorHandler
   myInteger = cint("abc")
myErrorHandler:
   If Err.Number <> 0 Then
      msgbox "Error handled"
   End If
Next myitem
----------------------------------

AnswerRe: Error handler only works once in loop Pin
Dave Kreskowiak24-Jan-09 10:46
mveDave Kreskowiak24-Jan-09 10:46 
QuestionInventory project to be converted to asp.net Pin
Subin Alex24-Jan-09 1:18
Subin Alex24-Jan-09 1:18 
AnswerRe: Inventory project to be converted to asp.net Pin
Dave Kreskowiak24-Jan-09 4:49
mveDave Kreskowiak24-Jan-09 4:49 
Questionbarcode generate Pin
ved Barharwa24-Jan-09 0:16
ved Barharwa24-Jan-09 0:16 
AnswerRe: barcode generate Pin
Wendelius24-Jan-09 3:06
mentorWendelius24-Jan-09 3:06 
AnswerRe: barcode generate Pin
programmervb.netc++24-Jan-09 11:21
programmervb.netc++24-Jan-09 11:21 
Questionbarcode Pin
ved Barharwa24-Jan-09 0:14
ved Barharwa24-Jan-09 0:14 
AnswerRe: barcode Pin
Rupesh Kumar Swami24-Jan-09 0:27
Rupesh Kumar Swami24-Jan-09 0:27 
AnswerRe: barcode Pin
Mr Oizo25-Jan-09 22:47
Mr Oizo25-Jan-09 22:47 
QuestionNumericUpDown object question. Pin
dtskull23-Jan-09 20:13
dtskull23-Jan-09 20:13 
AnswerRe: NumericUpDown object question. Pin
Rupesh Kumar Swami24-Jan-09 0:21
Rupesh Kumar Swami24-Jan-09 0:21 
AnswerRe: NumericUpDown object question. Pin
Dave Kreskowiak24-Jan-09 4:45
mveDave Kreskowiak24-Jan-09 4:45 
Questionworking with windows API Pin
jayachandra.c23-Jan-09 19:36
jayachandra.c23-Jan-09 19:36 
AnswerRe: working with windows API Pin
Dave Kreskowiak24-Jan-09 4:44
mveDave Kreskowiak24-Jan-09 4:44 
Questionimage zooming.. Pin
Member 295538723-Jan-09 19:00
Member 295538723-Jan-09 19:00 
AnswerRe: image zooming.. Pin
Dave Kreskowiak24-Jan-09 4:51
mveDave Kreskowiak24-Jan-09 4:51 
AnswerRe: image zooming.. Pin
Christian Graus25-Jan-09 0:47
protectorChristian Graus25-Jan-09 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.