AMT Help Files

COM Field Interface

The AMT Field object is returned by one the functions of the AMT-COBOL COM connection:  GetFieldbyIndex, GetfieldbyName or GetDisplayField.

Properties


Name Return type Access Description

CopyFrom 

Boolean 

Read 

Returns true if field is part of a copyfrom. 

DecimalPlaces

Integer

Read

Number of decimals (if field type is Numeric) or "0" (otherwise).

FieldLength

Integer

Read

Length of field.

FieldType

String

Read

Type of field can be: N, +, -, C or A. (Numeric or Alphanumeric).

FormattedValue 

String 

Read/Write 

The Value of the field, presented as a formatted String. 

MemoryValue 

String 

Read/Write 

The Value of the field, presented as a MemoryBuffer.

Name

String

Read

Name of field. If the field is part of a copyfrom, the field name is concatenated with the copyfrom number. For example: “MyField04”.

ReadOnly

Boolean

Read

Determines if it’s allowed to change the value of the field.

UpperCase 

Boolean 

Read 

Returns if the field is in uppercase. 

Value

String

Read/Write

Value of field, presented as a String.

Visible 

Boolean

Read Returns if the field is visible. 

X

Integer

Read

X-position of the screen.

Y

Integer

Read

Y-position of the screen.