trichview.com

trichview.support




Re: Item numbers


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/05/2002 20:03:56


All items are numbered sequentially, from 0 to ItemCount-1.

RichView does not store item numbers, item numbers are actual position of

item in the internal lists of items.

So if you insert/delete items, numbers of others change.


But as for items of table cells, they are not items of root document (only

table is an item of it), they are items of subdocuments (each cell is a

subdocument)

(there is a special class allowing to number all items sequentially,

including all item of tables (it is undocumented, but I can explain, if you

need).


There are several possible approaches to storing links to items.

Can you give more details about your problem?



> I would like to use RichViewEdit for a report where some of the text can

be

> entered and modified by the user but other text (numbers in tables) is

> generated by the program.

>

> As I see it, I should be able to have a link to the items that were

> generated by the program, so they can be updated. One possibility would be

> to save the item numbers. How the items numbered. What happens when a user

> inserts a new item in the editor? Do the other numbers change? Or is it

> possible to just keep pointers to items and modify the items through these

> pointers?

>

> Benedikt

>

>





Powered by ABC Amber Outlook Express Converter