Function ExecuteTextErrorLine() As
ExecuteTextErrorLine (ErrorText As String, ProcStr As String) As String
When Integra is executing Lotus Script at runtime that has been stored in the Callback Script field or the Error Handler field (Integra profile), any error event caused by this script will not allow to retrieve the line number in which the code has failed using the Lotus Script function Erl().
The line number cannot be retrieved with the Lotus Script Erl(), as the code is compiled and executed at runtime. In such cases the Erl() function returns 0 (zero) and the Error() function returns a string containing a text sequence $EXECUTE$xxx, whereas xxx represents the line number.
The ExecuteTextErrorLine function analysis the error text returned by the function Error() to retrieve the line number and to return the substring of the code line that has failed.
This function could eventually be used if you try to implement your own error handling.
Error text that has been either retrieved using the Error() function or the Integra runtime variable Export.ErrorText or Import.ErrorText (depending on the type of profile executed).
String representing the Lotus Script code that has been executed and caused the error event.