trichview.com

trichview.support




Re: Deleting an item safely (2)


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/18/2004 16:47:58


You need to initialize cell editing (table.EditCell or Cell.Edit), then use

rve.TopLevelEditor instead of rve.

rve.TopLevelEditor will contain cell items, indexed from 0.



> In your previous answer, you suggested this code:

>

>    rve.SetSelectionBounds(ItemNo, rve.GetOffsBeforeItem(ItemNo),

>      ItemNo, rve.GetOffsAfterItem(ItemNo));

>    rve.DeleteSelection;

>

> What would I do if the item is inside a table? Is the item number unique

> to this item in the whole document, or does each embedded TRichViewEdit

> have a list of items starting from 0?

>

> Cheers,

> Martin





Powered by ABC Amber Outlook Express Converter