Lotus Notes / Domino Sonstiges > Tipps und Tricks
Aussagekräftigere LotusScript Fehlermeldungen
(1/1)
m3:
William Beh hat einen interressanten Eintrag in seinem Blog:
--- Zitat ---Using Lsi_info, you can create a error handling message like below
Print Lsi_info(2) & " called by " & Lsi_info(12) & ": Error (" & Cstr(Err) & ") Line: " & Cstr(Erl) & " - " & Error$
The variable lsi_info is an array of strings.
* lsi_info(2) is the current module - sub or function name.
* lsi_info(12) is the module that called this sub or function. If lsi_info(2) is INITIALIZE, then so is lsi_info(12)
--- Ende Zitat ---
LN4ever:
Mit LSI_Info(430) bekommt man noch die Zeilennummer der aufrufenden Routine.
Msgbox Error$ &Chr$(10)&_
Chr$(10)&_
"Error in Function: "& Lsi_info(2) & " at line" & Cstr(Erl) & " called by " & Lsi_info(12) & " at line " & Lsi_info(430) &"."&Chr$(10)_
,48,"Lotus Notes Error number: "& Err
kann in einem UI-Programm gute Dienste leisten.
Navigation
[0] Themen-Index
Zur normalen Ansicht wechseln