<OBJECT>.EVAL()

Syntax

Value as A = <OBJECT>.EVAL( Expression as C )

Argument

Description

Expression

An Xbasic expression.

Description

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

The <OBJECT>.EVAL() method evaluates an expression in the context of an object.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only.

Example

The following example retrieves the value of the Firstname field by combining the name of the field with ".value". This illustrates how you can access a field's value by using its name, rather than a field pointer.

dim frm as P

dim lst as C

dim fld as C

frm = form.view("Customer Information")

lst = frm.child_enum()

fld = word(lst,15,crlf())

? eval(fld +".value")

= "Michael            "

See Also

Form Functions and Methods, Browse Functions and Methods