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

RRPL( cTable, xcKey, aFields )

Purpose

Update "redundant" fields in a table into which a one-to-one or one-to-many
relation has been set. For example, you might want to keep copies of
customer names in an orders table to facilitate display ordered
alphabetically by name in the orders window. You would then call RRPL()
when updating customer records.

Arguments

     cTable -- name of the related table

     xcKey -- key which related them

     aFields -- array of names of fields whose contents are to be copied

Setup

The table from which copies of field contents are to be made must be
selected at the time of the call.

Example

     LOCAL names := { "LAST_NAME", "FIRST_NAME" }
     CHK_DICT( "AAI_DICT" )
     SELECT CUSTOMER
     RRPL( "ORDERS", "ACCOUNT_NO", names )

Returns

.T.

Side Effects

Replaces fields named in aFields[] in the related table.

Artful Calls

SET_ORDER

Source File

AA_RRPL.PRG

See Also: RPL() RPLCHIFLDS()

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