So that, I designed a test procedure, before insert it to proyect.
I've an "EAccessViolation" error that I do not know how to solve.
Can you help me?
Code: Select all
...
table := TRVTableItemInfo.CreateEx(NumR,NumC, rve.RVData);
...
if rve.InsertItem('test', table) then begin end;
...
procedure TForm1.rveDblClick(Sender: TObject);
var
table:TRVTableItemInfo;
i : integer;
r,c : integer;
begin
for i := 0 to rve.ItemCount-1
do if (rve.GetItemStyle(i)=rvsTable) and
(rve.GetItemText(i)='test')
then begin
table := TRVTableItemInfo(EditorActivo.GetItem(i));
table.GetEditedCell(r,c);
table.Cells[r,c].Clear;
table.Cells[r,c].AddNL('Test test test',7,0);
rve.Format;
table.EditCell(r,c);
end;
end;