PreviousNext
Help > Easycom .NET > Easycom namespace > EasycomDataSet > EasycomDataSet.GetFieldInformation Method
EasycomDataSet.GetFieldInformation Method

 Returns information on a specified field.

 

Class EasycomDataSet

 

Syntax

public Object GetFieldInformation(Integer f, Easycom.fieldInformation info)

public Object GetFieldInformation(String fieldName, Easycom.fieldInformation info)

Description

 

This function returns the requested information as an object, which type depends on the information being requested.

 

fieldInformation

Type

Comments

FieldName

String

The field name, short or long (10 or 30).

EasycomType

EasycomType

The native datatype

Digits

Short

Total number of digits

Decimals

Short

Number of decimals

ServerLen

Short

Field size, in bytes

ColumnHeader

String

The AS/400 column header, 60 chars.

ColumnText

String

The AS/400 column text, 50 chars

Nullallowed

Boolean

True if the field can be null

 

Example of use (C#):

EasycomConnection my_cnx = new EasycomConnection();

my_cnx.ConnectionString = "Server=194.206.160.111;User Id=";

my_cnx.Open();

EasycomFile ecfile = new EasycomFile(my_cnx, filepath, OpenFileAccess.ReadWrite);

EasycomType type = (EasycomType)ecfile.GetFieldInformation(fieldnumber, Easycom.fieldInformation.EasycomType)); 

 

See also

EasycomDataSet.GetFormatInformation