Siliconetics Developer Center 
(609) 7607027
admin@srcsb.com
Untitled Document
SearchSearch:
ClassMethodSeek, SeekW


DESCRIPTION:
Retrieve the position of the first record which matched to the given search text.

ClassCLASS: 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 StringA pointer to the string to search for.
int* pIndexTypeThe pointer to an array of record types.
int IndexTypeCountThe number of types in array.
int TextGrpId of text group to search to.
int TextIDText id to search to.
int *pTextGrpThe pointer to an array of TextGrp ids.
int TextGrpCountNumber of text group types in array.
int *pTextIDThe pointer to an array of text ids.
int TextIDCountNumber of text ids in array.
bool CreateIndexThis 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:
ClassMethodSearch, SearchW
Untitled Document
SearchSearch: