<OBJECT>.CLASS()

Syntax

Object_Type as C = <OBJECT>.CLASS()

Description

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

The <OBJECT>.CLASS() method returns the class (i.e., type) of the object.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Example

Assume a form called F1 has a field called City and a button called Button1.

? :F1.class()

= "Form"

? :F1:city.class()

= "Field"

? :F1:button1.class()

= "Button"

The following example returns the class of a table field.

dim ptr as P

dim tptr as P

dim fptr as P

ptr = form.load("Customer Information")

ptr.show()

tptr = Table.current()

fptr = tptr.field_get(2)

? fptr.class()

= "Field"

The following example returns the class of a form field named lastname.

dim ptr as P

ptr = form.load("Customer Information")

ptr.show()

? ptr.lastname.class()

= "type-in field"

See Also

Form Functions and Methods, Browse Functions and Methods, StatusBar Methods