Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recording the Line Number in the Error Event
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Recording the Line Number in the Error Event
Divers
Thread ID:
00464195
Message ID:
00464195
Vues:
46
I have a VB module that has the following function which is referenced in the ON ERROR GOTO statement:

TRAP:
Screen.MousePointer = vbNormal
MsgBox "An error has occured in ProcessTables: " & Err.Description & " (" & CStr(Err.Number) & Err.Source & ")", vbCritical
RaiseEvent Status("Errors occured during table processing.")
ProcessTables = False
Exit Function

How do I add the line number of the code which triggered the error event to this statement?

Thanks,

Ben Holton
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform