Appearance
LogError
Declaration
procedure LogError(aMesg : string);
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
if MyData.EOF then
LogError('You are at the end of records in MyData recordset');
end;Description
Creates an entry in the action Log of type User Error. Further code in this script will execute but the mapping will stop after this event. At the end of processing the action will have a failed status.
By using this function you are indicating to the user that an error has occurred that cant be recovered from automatically, and therefore the user needs to step in. The message that is logged should provide enough information for the user to fix the problem and re-run the action.