Seek, SeekW
DESCRIPTION: Retrieve the position of the first record which matched to the given search text. |
CLASS: CFlitBase
PROTOTYPE(S):int Seek(LPCSTR String, int *pIndexType, int IndexTypeCount, int TextGrp, int TextID, bool CreateIndex = true); | int Seek(LPCSTR String, int *pIndexType, int IndexTypeCount, int *pTextGrp, int TextGrpCount, int *pTextID, int TextIDCount, bool CreateIndex = true); | int Seek(LPCSTR String, int Type, int TextGrpID, int TextID, bool CreateIndex = true); | int SeekW(LPCWSTR String, int *pIndexType, int IndexTypeCount, int TextGrp, int TextID, bool CreateIndex = true); | int SeekW(LPCWSTR String, int *pIndexType, int IndexTypeCount, int *pTextGrp, int TextGrpCount, int *pTextID, int TextIDCount, bool CreateIndex = true); | int SeekW(LPCWSTR String, int Type, int TextGrpID, int TextID, bool CreateIndex = true); |
ARGUMENT(S):LPCSTR String | A pointer to the string to search for. | int* pIndexType | The pointer to an array of record types. | int IndexTypeCount | The number of types in array. | int TextGrp | Id of text group to search to. | int TextID | Text id to search to. | int *pTextGrp | The pointer to an array of TextGrp ids. | int TextGrpCount | Number of text group types in array. | int *pTextID | The pointer to an array of text ids. | int TextIDCount | Number of text ids in array. | bool CreateIndex | This flag if sets to true will force the system to create a new index if it does not existed. |
RETURN VALUE: This function returns the found record position in file or -1 in case the requested record was not found.
EXAMPLE:
COMMENT:
SEE ALSO: Search, SearchW |
|