Get numbering value of a paragraph.

  • Hello,

    I want to know the numbering value of a paragraph.

    To assign a value, I do :

    1. MyRichText->ActiveParagraph->ASet(WPAT_NumberStart, 1);

    It works.

    To retrieve the value of a paragraph, I tried:

    1. MyRichText->ActiveParagraph->AGet(WPAT_NumberStart, resultat);


    1. int result = MyRichText->CurrAttr->NumberStart; //return -1

    It does not work.

    There is a solution ?
    Thank you for your help.

  • Thank you for your reply.

    I favor the use of the forum because it allows to share the answer with the other users. So, if they ask themselves the same question tomorrow, instead of soliciting you, they will get a simpler answer.