6 25 LceGetFieldIndicator

LANSA Open Guide

6.25 LceGetFieldIndicator

Retrieves the DBCS (Double Byte Character Set) flag from the LANSA Repository for non-Unicode string fields such as Alpha, Char and String. It is irrelevant for other filed types including Unicode fields (NCHAR, NVARCHAR).

BOOL

LceGetFieldIndicator

(int

iSession,

 

 

 char far * 

strFieldName,

 

 

 char far *

strValue )

  

Parameters

iSession

The session identifier as returned by LceGetSessionId.

strFieldName

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

strValue

The array to receive the returned value. The size should be at least FIELD_IND_LENGTH + 1.

Y = the field uses DBCS characters.

N = the field uses single byte characters.

  

Return Values

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

FALSE is returned if an error occurs.

Notes

  • Non-string fields and Unicode code fields will return 'N'.
  • This function performs no communications to the host.
  • This function can only be executed after the session is opened.

Related Functions

6.26 LceGetFieldLabel

6.23 LceGetFieldHeading

6.27 LceGetFieldType