Difference between revisions of "DBF APPEND()"
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) m (Text replace - "lianjaapi.h" to "lianja_api.h") |
||
Line 7: | Line 7: | ||
==SYNOPSIS== | ==SYNOPSIS== | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
int *DBF_APPEND(blank) | int *DBF_APPEND(blank) | ||
Line 29: | Line 29: | ||
<code lang="c"> | <code lang="c"> | ||
− | #include " | + | #include "lianja_api.h" |
lianjaapi_dbf_append() | lianjaapi_dbf_append() |
Latest revision as of 06:53, 11 April 2013
PURPOSE
Append a record
SYNONYM
api_dbf_append()
SYNOPSIS
#include "lianja_api.h" int *DBF_APPEND(blank) <input parameters> int blank; /*blank record */ <output parameters> none
DESCRIPTION
The DBF_APPEND() function will append a record into the currently selected table. The current record buffer will be appended unless blank is defined as 1.
The DBF_APPEND() function will return < 0 if an error occurs during the append operation.
Lianja performs automatic file locking on shared databases for the append. If the shared database is locked by another user, then the append will wait until the database is unlocked. The append will not be affected by records locked by other users.
EXAMPLE
The following example will append in a record specified in the first parameter passed and return the result.
#include "lianja_api.h" lianjaapi_dbf_append() { int rc; if (_parinfo(1) != API_NTYPE) {; rc = DBF_APPEND( _parni(1) ); } else { rc = -1 } _retni( rc ); }
SEE ALSO
BLOB_UPDATE(), BLOB_WRITE(), DBF_GATHER(), DBF_READ(), DBF_RECBUFFER(), DBF_SELECT(), DBF_UPDATE(), FIELD_UPDATE(), MEMO_UPDATE(), MEMO_WRITE()