Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

MACROBLOCK( cItem )

Purpose

Convert an item intended for macro-expansion into a code block.

Arguments

     cItem -- item to convert

Setup

cItem will typically contain the name of a function to be executed or
an expression to be evaluated.

Example

     The ugly Summer '87 macro-expansion way:

     USE CUSTOMER
     _key = "LAST_NAME+FIRST_NAME"

     DO WHILE !EOF()
        ? &_key
        SKIP
     ENDDO

     The refined Clipper 5.0 code-block way:

     USE CUSTOMER
     LOCAL bKey := MACBROBLOCK("LAST_NAME+FIRST_NAME")
     DO WHILE !EOF()
        ? EVAL( bKey )  && Avoid macro overhead
        SKIP
     ENDDO

Returns

A code block which, when evaluated, will return the same result as if cItem
had been macro-expanded.

Side Effects

None.

Artful Calls

None.

Source File

ARTFUL.CH

See Also: AAEXECUTE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson