This function is used to identify one or more records matching the search criteria, from a file on a host.
BOOL |
LceRequestSelect |
(int |
iSession, |
|
|
char far * |
strFieldList, |
|
|
char far * |
strFileName, |
|
|
char far * |
strKeyList, |
|
|
BOOL |
fGeneric ) |
Parameters
iSession |
The session identifier returned by LceGetSessionId. |
strFieldList |
A list of fields to be retrieved from the file. Each field listed must have been declared using an LceUseField function. |
strFileName |
The name of the file to be used. This file must have been declared using an LceUseFile function |
strKeyList |
A list of the key field names in the sequence in which they are used in the file. These fields must have been declared using the LceUseField function. The values for the keys are set using the LceSetFieldValue/LceSetFieldValueU function. Refer to Notes for key and generic search considerations. Key fields must not be specified if the *BLOCKBYKEY option was used in the preceding LceSetSelectOptions. |
fGeneric |
Refer to notes for further information.
|
Return Values
TRUE is returned if the session has selected records.
FALSE is returned if an error occurs.
Notes
Key and Generic search considerations:
This LceRequestSelect function is used with a number of other select processing functions. The general pattern of these functions is as follows:
Tip
For a better performance when retrieving records, use the LceRequestSelect and LceReceiveNextX functions with the select option set to *RECEIVEIMMED.
Related Functions