Returns the number of records which were retrieved as a result of the LceReceiveSelect function.
BOOL | LceGetRecordCount | (int | iSession, |
char far * | strFileName, | ||
int far * | piValue ) |
iSession | The session identifier returned by LceGetSessionId. |
|---|---|
strFileName | The file name. This file name must be the same as the file name used in the preceding LceReceiveSelect function. |
piValue | The buffer location which will receive the returned value. |
TRUE is returned if the session has retrieved the record count of the select.
FALSE is returned if an error occurs.
The number retrieved can be used as a loop counter when processing the received records. The LceGetSelect function requires the number of the record it is to get. You can create a loop containing the LceGetSelect function, where the end condition is the value returned by this function.
This LceGetRecordCount function is used with a number of other select processing functions. The general pattern of these functions is as follows: