SRL Archive - SRL Archives

SaveReport - Saves a multi-line progress report!


Abyssal

2007-05-08 23:11:53

After someone requested it I decided to venture off and make my own. Works great! Only trouble you might have that it needs the report inside of an array of string. So if you want to print it also, I have included a procedure that takes an array and prints it into the debug box.

If you use these in a script, I would appreciate recognition for my work.



Edit: Updated SaveReport to work with a variant array to make things easier. Also updated ArrayToDebug.

Lorax

2007-05-12 05:49:18

Great, You could have used
function GetDebugText: string;
Gets the text in the debugbox.

Abyssal

2007-05-12 11:19:33

I debated it, but then decided it was better this way only because if someone forgot to clear the debug log they'd have a huge long report every time it re-wrote it and may cause an error with the file saving if the array is not long enough.

I think… Lol

grindisbest

2007-05-31 17:50:02

Kinda of topic but since we are talking about debug, is there a way to delete that last thing in the debug?

Boreas

2007-05-31 23:56:33

deletedebugline?

grindisbest

2007-06-01 01:49:19

Yeah something like that.

Abyssal

2007-06-01 08:14:41

Just use a variable like
var
R: array [0..1] of Variant;

then do

R[0]:= 'Progress Report';
R[1]:= 'Worked for…' + ScriptTime(1);
ArrayToDebug(R);
SaveReport(r);