SRL Archive - Help

Report from line...


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:
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?

Yago

2012-04-06 15:19:08

You want to read the file and print a certain line?

Nexz

2012-04-06 15:28:55

From: Yago
You want to read the file and print a certain line?

I want to have the line of the script where the error occured printed in the debug box.

Frement

2012-04-06 15:40:45

Something like that could be added to Simba.