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....
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
| 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. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| |
| ||||
| 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.




