This method returns the type of a field.

import com.compuware.uniface.*;

int getfieldType (int fieldNumber)


fieldNumber—field number, starting from one.

Return Values

The type of the field specified by the fldNr parameter. It throws a UnifaceException if the field number does not exist.


The constants used for Uniface field types are listed in the following table:

Field Type Constants
Constant Meaning
UTYPE_STRING Uniface string
UTYPE_BOOLEAN Uniface boolean
UTYPE_NUMERIC Uniface numeric
UTYPE_FLOAT Uniface float
UTYPE_DATE Uniface date
UTYPE_TIME Uniface time
UTYPE_DATETIME Uniface date time
UTYPE_RAW Uniface raw
UTYPE_IMAGE Uniface image