WPCubed Product Support

Detect cafsMisSpelled?

Hi,

I am iterating through the text, and I need to detect if certain word has cafsMisSpelled attribute assigned to it.

How can I achieve this?

Thanks!!!

#1 ♥ 0
3k Views 2 users read 1 min
support

Hi,

each TParagraph has a CharAttr array. Thjis array are cardinals, the lower 3 bytes are used as index values for the attributes, the high byte is used for status bits, such as cafsMisSpelled with the value

cafsMisSpelled = $04000000;

You onyl need to test the value if the bit is set

if (val and flag)<>0 then ...

Julian

#2 ♥ 0
This category is archived. No new posts are possible.