[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

Re: Automating the Find command



Hi Sue...

The  following code sets up find to look for any text that has the font 
weight that is defined in the document's first char format.  Not useful, 
but illustrative, I hope.  (You don't need to specify FS_FindCharFmt  - 
find is smart enough to deduce the find type if you have a charFmt 
property.  But you can specify it if that makes you feel better.)

charFmt = F_ApiGetId(FV_SessionId, docId, FP_FirstCharFmtInDoc);
findParams = F_ApiAllocatePropVals((IntT)1);
findParams.val[0] = F_ApiGetPropVal(docId, charFmt, FP_FontWeight);

Cheers               cud


** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **