[ |../../index.htm#lansa/lcegetfieldtype.htm]
You are here:
6.27 LceGetFieldType
Retrieves the field's type.
BOOL |
LceGetFieldType |
(int |
iSession, |
|
|
char far * |
strFieldName, |
|
|
char far * |
strDataType, |
|
|
FLDLEN far * |
pLength, |
|
|
int far * |
piDecimal ) |
Parameters
iSession |
The session identifier as returned by LceGetSessionId. |
strFieldName |
The field name. The field must have been declared using an LceUseField function. |
strDataType |
The variable which will receive the Data Type. The size of strDataType should be at least FIELD_TYPE_LENGTH + 1. |
|
A = Alpha |
pLength |
Pointer to the variable to receive the field length. This indicates the number of characters or digits. |
piDecimal |
Pointer to the variable to receive the number of decimal places. Only used with numeric fields. |
Return Values
TRUE is returned if the session has got the field type.
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.21 LceGetFieldDesc
6.26 LceGetFieldLabel
6.23 LceGetFieldHeading
6.25 LceGetFieldIndicator
6.17 LceGetDefaultValueX
6.18 LceGetDefaultValueU
[ |../../index.htm#lansa/lcegetfieldtype.htm]