Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling
Message
De
16/01/2003 14:51:47
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
16/01/2003 14:23:05
Adrian Demaestri
Ministerio de Economia de La Prov. de Ba
La Plata, Argentine
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00742571
Message ID:
00742583
Vues:
16
Unless you want to use a third party product I believe the only choice you have is to go back to BASIC days and number line by line. You can then type into the line number that raised the error through the Erl variable. Anyone else, feel free to correct me if you know of an easier way.
Private Sub Command1_Click()

On Error GoTo err_handler

1   Label1.Caption = 1 + 1
2   Label2.Caption = 2 * 7
3   Label3.Caption = 6 / 0
4   Label4.Caption = 3 + 5
5   Exit Sub

err_handler:
100 Debug.Print Erl
101 Stop

End Sub
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform