Get numbering value of a paragraph.

  • Hello,

    I want to know the numbering value of a paragraph.

    To assign a value, I do :

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


    It works.

    To retrieve the value of a paragraph, I tried:

    Code
    MyRichText->ActiveParagraph->AGet(WPAT_NumberStart, resultat);


    and

    Code
    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.