Nexz
2012-04-06 14:55:13
Is there a way to print a script line (number) into a WriteLn or set a variable to the a line (number) where the variable was defined?
The idea:
So it could be used for:
The idea:
procedure StopScript;
begin
WriteLn('Report from line: '+PrintScriptLine);
TerminateScript;
end;(I just made up 'PrintScriptLine'.)So it could be used for:
SetScriptLine;
if not SomeThing then
StopScript;Or replace 'PrintScriptLine' with a variable and use:VarReason := #line
if not SomeThing then
StopScript;Or has anyone got a better idea?