6 20 LceGetFieldDataLength

LANSA Open Guide

6.20 LceGetFieldDataLength

Retrieves the data length for the field's current value.

BOOL

LceGetFieldDataLength

(int 

iSession, 

 

 

 char far * 

strFieldName,

 

 

 FLDLEN far * 

pLength )

  

Parameters

iSession

The session identifier as returned by LceGetSessionId.

strFieldName

The field name. The field must have been declared using an LceUseField function.

pLength

Pointer to the variable to receive the field length. This indicates the number of characters or digits.

  

Return Values

TRUE is returned if the session has got the field data length.

FALSE is returned if an error occurs.

Notes

  • This function performs no communications to the host.
  • This function must be executed after the session is opened.
  • If the field is currently *SQLNULL, the length will be returned as zero.

Related Functions

6.27 LceGetFieldType

6.26 LceGetFieldLabel

6.23 LceGetFieldHeading

6.25 LceGetFieldIndicator