trichview.com

trichview.support




Re: changing a table in another table


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/26/2002 18:25:55


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];



> Hello,

>

> I want to add a tablerow to a table, which is in a tablecell itself! I

work

> with C++Builder and got a form with one button and the RVEditField.

>

> This is the Code for the button (I cutted it to the minimum):

> 1: TRVTableItemInfo *myTable;

> 2:

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

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

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

>

> That works nice, but I want to to insert a tablerow to a table, which

already

> exists. I mean, if line 4 is changed with line 5. Then it works only, if

> I added "RVE->Format()" at the end. Now I want to insert a table in a

tablecell.

> I pressed the button, placed the caret in cell(1,1) and pressed the button

> a second time. But that doesn't work.

> I tried something like "myTable2->Cells[1][1]->Format();" with no success.

>

> How to do?

>

> By the way: What is the last boolean parameter in the function InsertRows

> for? I found no entry in the helpfile.

>

>

> thanks a lot

>

> steve

>





Powered by ABC Amber Outlook Express Converter