6 19 LceGetFieldAttributes

LANSA Open Guide

6.19 LceGetFieldAttributes

Retrieves the field's attributes. These attributes can be used to validate data before it is assigned to the field.

BOOL

LceGetFieldAttributes

(int 

iSession, 

 

 

 char far * 

strFieldName,

 

 

 unsigned long far *

pulFlags )

  

Parameters

iSession

The session identifier as returned by LceGetSessionId.

strFieldName

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

pulFlags

Indicates whether certain field attributes apply to the field. This field is treated as a bitmap. If the attribute applies to the field the corresponding bit is set to True (1).

Bit 1 – Can the value be *SQLNULL
Bit 2 – Is the Datetime value received from the server in UTC
Bit 3 – Is the Integer value unsigned

  

Return Values

TRUE is returned if the session has got the field attributes.

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.

Related Functions

6.27 LceGetFieldType

6.26 LceGetFieldLabel

6.23 LceGetFieldHeading

6.25 LceGetFieldIndicator

6.58 LceSetFieldValue

6.29 LceGetFieldValueX

6.29 LceGetFieldValueX

6.30 LceGetFieldValueU