GetFieldType

PowerBuilder Native Interface

IPB_Session interface:

GetFieldType method

Description

Obtains the datatype of a field declared by a class.

Syntax

GetFieldType(pbclass cls, pbfieldID fid)

Argument

Description

cls

The class that defines the field

fid

The internal ID of the class instance variable

Return Values

pbint. A simple datatype defined in the list of pbvalue_type enumerated types, such as pbvalue_int. See "PBNI enumerated types".

Examples

This statement gets the type of the specified field ID:

 pbint pbfieldType = session->GetFieldType(cls, fid);

See Also