[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|            EVALUATE             |
+---------------------------------+
EVALUATE(<expC>)

-----------------------------------
Evaluates <expC> and returns result.
Return value - Character, numeric, date, logical or memo
-----------------------------------

The character expression must be a literal character string enclosed by
single or double quotation marks.  The character string may be a valid
FoxPro expression, a memory variable or a database field.

EVALUATE() is similar to the TYPE() function, but returns the result of
an expression instead of the expression's type.

+---------------------------------+
|             Examples            |
+---------------------------------+
Here are some command window examples:

? EVALUATE('5 * 4')

USE customer
? EVALUATE('customer.contact')

? EVALUATE('DATE()')

STORE 'DATE() = {10/31/91}' TO halloween
? EVALUATE(halloween)

? TYPE(halloween)

Whenever possible, EVALUATE() should be used to replace macro
substitution using & operator.  Macro substitution with & is slow -
always use EVALUATE() or name expression whenever possible to replace
macro substitution.

-----------------------------------

See Also:  TYPE(), .  TYPE() and EVALUATE()

-----------------------------------

See Also: TYPE() EVALUATE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson