Topic: Application crash
The following script crashes the app I used in?
I couldn't make it work.
procedure Form1_TreeView1_OnChange (Sender: string);
var
iRow2 ,c3: integer;
q2, iCol2: integer;
//
vi: integer;
begin
c3 := Form1.TreeView1.RowCount - 1;
q2 := Form1.TreeView1.Columns.Count-1;
Form1.TreeView1.columns[1].visible := false;
for vi := 0 to Form1.TreeView1.RowCount -1 do
for iRow2 := 1 to c3 do
if Form1.TreeView1.Cells[1,iRow2] = '(0)' then
for iCol2 := 1 to q2 do Form1.TreeView1.Cell[iCol2,iRow2].textColor := $00B9B9B9;
begin
if Form1.TreeView1.Cells[1,vi] = 'red' then Form1.TreeView1.Cell[0,vi].textcolor := clred;
end;
end;
God... please help me become the person my dog thinks I am.