AddAutoSysTimeFields
Define which of the fields are automatically set by the server using the current server system time (in GMT time zone).
Type
ISAM Function
Declaration
NINT AddAutoSysTimeFields(FILNO datno, pA_STFIELDS defs)
Description
typedef struct astfields {
COUNT version; /* Version of this structure */
COUNT entries; /* number of entries in fields array */
LONG pad; /* padding to ensure struct alignment */
pA_STFIELD fields; /* fields array */
} A_STFIELDS, *pA_STFIELDS;
typedef struct astfield {
LONG fieldno; /* field number */
TEXT mode; /* set time */
} A_STFIELD, *pA_STFIELD;
CT_AUTOSYSTIME_CREATE 0x01 - when the record gets added
CT_AUTOSYSTIME_UPDATE 0x02 - when the record gets rewritten/updated.
Return
NO_ERROR on success