How does the following statements work?

On Error Goto 0

Answers were Sorted based on User's Feedback



How does the following statements work? On Error Goto 0..

Answer / sujitha

To Disable any enabled error .

Is This Answer Correct ?    4 Yes 1 No

How does the following statements work? On Error Goto 0..

Answer / guest

control switches to same statement again

Is This Answer Correct ?    2 Yes 1 No

How does the following statements work? On Error Goto 0..

Answer / mudit kumar bachhawat

whenever we handle any error then in error it performs its given tasks
for eg:

on error goto abc
msgbox day("abc")
exit sub
abc:
msgbox "Error"

this will message box on error

but in On error goto 0 is used to raise again error in VB

for eg

sub form_load
on error resume next
msgbox day("ABC")
on error goto 0
msgbox day("BBB")
end sub

this will raise error in "msgbox day("BBB")" line

Thank u

Is This Answer Correct ?    1 Yes 0 No

How does the following statements work? On Error Goto 0..

Answer / saru

on error goto om

msbox("This line has error") ' if this statement has
error

msgbox("This line has error") ' if this statement has error
om:
msgbox("An error has occured")

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Visual Basic Interview Questions

How do I change the color of a form in visual basic?

0 Answers  


Scope of API's can be of types, what are they?

0 Answers  


Whether HTML supports multimedia: and document links?

0 Answers  


Types of cursors in RDO.

0 Answers  


How can I create a VBX?

0 Answers  






What do you mean by Databound Controls? Explain.

1 Answers  


What is file in vb?

0 Answers  


what is differece b/w Module and class Modules in vb6? thanks

4 Answers   Ask Techsys, TCS,


How about Access 2.0 compatibility?

0 Answers  


What are the types of Instancing property that can be set for a Class in a ActiveX DLL and ActiveX EXE?

1 Answers  


How do I add a form in visual basic?

0 Answers  


What is the use of command Object?

2 Answers  


Categories