• Hello again,

    I was working with tables and was trying to create an "Odd" and "Even" style for each row defined as such:

    Helas, I'm able to get the Odd rows text to be BOLD, but the Even rows are not in Italic in any way. I'm looking around trying to find if something was posted on this matter ... BTW, changing Italic to Bold in the Even style will work ....

    Green_Flyer

  • using this instead of original code produced the desired result:

    Code
    ASetCharStyle(true, WPSTY_ITALIC);
        ASetCharStyle(true, WPSTY_BOLD);

    I would like to know however, if the other is possible or not ?

    Green_Flyer

    • Offizieller Beitrag

    This is the code for the universal ASetCharStyle method:

    It is ment to be a shortcut.

    The mistake in your original code the mistake was this: ASet(WPAT_CharStyleMask, 1); - here also use WPSTY_ITALIC.

    Note:
    WPAT_CharStyleMask selects the use of a flag, WPAT_CharStyleON changes the state of this flag to be true or false.

    Julian