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

by writing MACRO CODE,i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.

0 Answers   Infotech,


What areTypes of compatability in VB and their usage ?

4 Answers   MBT,


How would you use ActiveX Dll and ActiveX Exe in your application?

0 Answers  


How does the following statements work? On Error Resume Next

1 Answers  


What are the new events in textbox that has been included in VB6.0

1 Answers  






Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.

0 Answers  


List out controls which does not have events ?

1 Answers  


Data Control missing from toolbox when I use VB under NT3.5. Why?

0 Answers  


How can you Add API functions to your Application?

0 Answers  


How would you add column headers in listview control?

0 Answers  


What is "Reserved Error -1209"?

0 Answers  


What are the types of line styles available in Treeview Control?

0 Answers  


Categories