Das Notes Forum
Lotus Notes / Domino Sonstiges => Tipps und Tricks => Thema gestartet von: m3 am 05.07.06 - 10:06:34
-
William Beh hat einen interressanten Eintrag (http://notesweb2.blogspot.com/2006/07/lsiinfo.html) in seinem Blog:
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)
-
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.