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

What is the use of Scalewidth and ScaleHeight Proeperty?

0 Answers  


Draw Sequence Modal of RDO? Explain.

0 Answers  


how many no of controls in form?

16 Answers   AIMS, Airex Logistics,


what are the types of combo box?

1 Answers   Satyam,


What are different types of locks in ADODB?

4 Answers  






How to find the current record position in data control?

0 Answers  


How would you activate animation control?

1 Answers  


Why API functions are Required?

0 Answers   L&T, Wipro,


what is the Difference between Tabletype and Snapshot?

0 Answers  


What is FireHouse Cursors?

0 Answers  


What does the Implements statement do?

1 Answers  


How do I implement an incremental search in list/dir/combo/file boxes?

0 Answers  


Categories