trichview.com

trichview.support




Re: changing a table in another table


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/26/2002 19:09:32


Please give me a complete code (or, better, send me a project) that causes

this exception


PS: about last parameter: it is optional, and allows not to select inserted

rows.


> Hello,

>

> seems I didn't explain my problem good. Next try:

>

> I insert a table in RichViewEdit, place the caret in a cell and insert a

> second table. After that I want to add rows to the second table, but here

> I always get an exception "ListIndex out of Bounds".

>

> steve

>

> "Sergey Tkachenko" <svt@trichview.com> wrote:

> >Hello,

> >

> >If you want this operation to be undone, you can do the following:

> >

> >myTable = new TRVTableItemInfo(3,3,RVE->RVData);

> >myTable->InsertRows(3, 1, 0, true);

> >oldtable->EditCell(row,col);

> >RVE->InsertItem("RVTable",myTable);

> >

> >The code above will insert myTable at the beginning of

> >oldtable->Cells[row][col];

> >

> >





Powered by ABC Amber Outlook Express Converter