Function TWPRTFDataCollectionBase.CodeLocate(ResultPar:TParagraph; ResultPosInPar:Integer; aName:string; Code:TWPTextObjType; CmpModes:TWPTextObjModes; LocateOptions:TWPCodeLocateOptions; CmpStr2:string) : Boolean

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFDataCollectionBase

Parameters

Returns

The type of the result value is Boolean.

Description

This function seraches for a certain code (=TWPTextObj). It compares the name if it is not '*ALL*', the type and checks wether the mode and the given CmpModes have union elements. CmpModes Is not checked if = [].