Update an audit trail
──────────────────────────────────────────────────────────────────────────────

Syntax

GT_Audit( cTable , cOperation , lSecond , cUserName )

Arguments:

cTable - Table to be audited
cOperation - Operation that has been performed
lSecond - Should a second index be maintained
cUserName - Name of user performing operation

Returns:

NIL

Description:

The current record in cTable is written to the audit table (in
AUDIT\) together with the date, time and username of the current
operator.
If lSecond is .T., an index identified as LEFT( cTable , 7 ) + "1"
is opened and maintained. The normal index (cTable) will be on
auditdate+audittime, and the second index will be on the normal key
of cTable.

cTable must be SELECTed before calling.

Examples:



Header File: GT_LIB.CH

Source: AUDIT.PRG

Author: Martin Colloby