<OBJECT>.TYPE()

Syntax

Data_Type as C = <OBJECT>.TYPE()

Description

The <OBJECT>.TYPE() method applies to:

The <OBJECT>.TYPE() method returns the type of data bound to an object. Valid types are:

Type

Meaning

C

Character

N

Numeric

M

Memo, Bitmap, Rich Text Memo, OLE

L

Logical

D

Date

V

Not bound to anything

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Example

This script is attached to a button on a form. It prints out to the Trace window the name of each object on the form and the type of the data that object is bound to.

f = parentform.this

count = f.children()

for i = 1 to count

    object = f.child(i)

    name = object.name()

    type = object.type()

    :trace.writeln(name + " " + type)

next i

See Also

Form Functions and Methods, Browse Functions and Methods