Objectmix
Tags Register Mark Forums Read

How to change 'On Error Goto ArreurA' with 'On Error Goto ArreurB' without error if an error occured? : basic.visual

This is a discussion on How to change 'On Error Goto ArreurA' with 'On Error Goto ArreurB' without error if an error occured? within the basic.visual forums in Programming Languages category; Exemple: On Error Goto ErreurA Picture = LoadPicture(VarName1) On Error Goto ErreurB Picture = LoadPicture(VarName2) exit sub ErreurA: msgbox "ErreurA= VarName1" exit sub ErreurB: msgbox "ErreurB= VarName2" Exit sub If an error occudes with Picture = LoadPicture(VarName2) it cause an error and the program stop there without error message. What code line must I add? Raymond H....


Object Mix > Programming Languages > basic.visual > How to change 'On Error Goto ArreurA' with 'On Error Goto ArreurB' without error if an error occured?

Reply

 

LinkBack Thread Tools
  #1  
Old 08-09-2004, 04:30 AM
Junior Member
 
Join Date: Nov 2009
Posts: 0
Application Development is on a distinguished road
Default How to change 'On Error Goto ArreurA' with 'On Error Goto ArreurB' without error if an error occured?

Exemple:

On Error Goto ErreurA
Picture = LoadPicture(VarName1)
On Error Goto ErreurB
Picture = LoadPicture(VarName2)
exit sub
ErreurA:
msgbox "ErreurA= VarName1"
exit sub
ErreurB:
msgbox "ErreurB= VarName2"
Exit sub

If an error occudes with
Picture = LoadPicture(VarName2)
it cause an error and the program stop there without error message. What
code line must I add?
Raymond H.


Reply With Quote
Reply

Thread Tools


Similar Threads

Thread Thread Starter Forum Replies Last Post
Error 8 Compilation Error. File permission error or DMA hardwareerror detected usenet labview 2 09-13-2007 07:10 AM
Error occured while running usenet DOTNET 0 07-13-2007 12:02 AM
a generic error occured in GDI+ usenet DOTNET 2 02-26-2007 01:35 PM
Vim Latex goto error problem usenet Editors 2 01-17-2007 08:36 AM
error occured vb126 usenet ADO DAO RDO RDS 0 11-10-2003 10:40 AM


All times are GMT -5. The time now is 09:50 AM.