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

KEEP_RELAT( cAlias, aLookups, xcUdf )

Purpose

Save lookup pointers, execute a udf, restore pointers.

Arguments

     cAlias -- table to use

     aLookups -- array of lookup tables, usually u_depend[] (if
                     called from within THE_USUAL())

     xcUdf -- code block or udf to execute

Setup

aLookups is an array of the names of the tables which depend on
cAlias (if called from THE_USUAL, this would be u_depend[]).

Example

     * To generate a new Account # while in the Customer window of AAI:

     mAccount_No := KEEP_RELAT( ALIAS(), u_depend, "NEXT('Account_No')" ) )

Returns

The result of the execution of xcUdf.

Side Effects

Crash on bad setup.

Artful Calls

GET/SETLOOKUPS

Source File

AA_RELAT.PRG

See Also: CHECK_REL() GET/SETLOOKUPS()

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