Nexz
04-06-2012, 06:55 PM
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:
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?
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?