SRL Archive - Research & Development Lounge

GetDebuglines


MylesMadness

2008-05-18 16:31:21

Function GetDebuglines:Array of String;
var
I:Integer;
begin
SetArrayLength(Result, GetDebugLineCount)
For I:=0 to GetDebugLineCount-1 do
Result[I]:=GetDebugLine(I);
end;

XcanadamanX

2008-05-18 16:52:28

Function GetDebuglines:Array of String;
var
I:Integer;
begin
For I:=0 to GetDebugLineCount do
Result[I]:=GetDebugLine(I); //not result[0]
end;

im guessing you meant this?

MylesMadness

2008-05-18 17:09:46

Fixed the function… gave out of range errors