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

GET_STD2( nMode, [ xcUdf_fld [, xcUdf_rpl ]] )

Purpose

Standard add/edit routine for THE_USUAL(), with automatic updates to key
fields in child tables if nMode = 2, and support for multi-page screens
through PGUP and PGDN.

Arguments

     nMode -- 0 = edit, 1 = add, 2 = edit non-key fields, 3 = copy the
                  current record, edit and append.

     xcUdf_fld -- if not called from THE_USUAL, a code block or
                      macro-compilable string to perform the GET's of your
                      fields.

     xcUdf_rpl -- if not called from THE_USUAL, a code block or
                      macro-compilable string to replace the data just
                      read; defaults to { || RPL() }.

Setup

Designed for use by THE_USUAL(). Otherwise, xcUdf_fld is required.

Example

     GET_STD2( 2, { || MY_FLDS() } )

Returns

.T. if record was successfully added/edited, else .F.

Side Effects

Crash on missing udfs or variables.

Artful Calls

BLANK, STAT_LINE, LOCK/UNLOCKREL, MACROBLOCK, MIDDLE, SYSCOLOR, ADDREC,
PUNIQUE

Source Files

AA_GSTD2.PRG, AM_GSTD2.PRG

See Also: GET_STD() THE_USUAL()

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