6.50 LceRequestSelect

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.

  • True = apply a generic search.
  • False = do not apply a generic search.

  

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

6.64 LceSetSelectOptions

6.50 LceRequestSelect

6.51 LceRequestSelectWhere

6.48 LceReceiveNextX

6.37 LceGetRecordCount

6.38 LceGetSelect

6.53 LceSelect

6.11 LceDeleteSelect