trichview.com

trichview.support




Re: Counting Paragraph


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/09/2003 1:04:06


If you want to count paragraphs not including table cell (table are counted

as one paragraph), the code is


cnt := 0;

for i := 0 to rv.ItemCount-1 do

  if rv.IsParaStart(i) then

    inc(cnt);



>

> Hi,

> In RVEdit, you can count the items in the RVE by using :

> for i:= 0 to items.count-1.

>

> Now, how do I count the paragraph in RVE. Is there a constant term for

this,

> I mean, something like: para.count-1???

>

> I want to be able to index(count) the paragraph so that I can delete a

certain

> paragraph which is not needed.

>

> Thanks.





Powered by ABC Amber Outlook Express Converter