Dbrecall()
From Recital Documentation Wiki
Revision as of 14:19, 1 May 2009 by Yvonnemilne (Talk | contribs)
PURPOSE
recall a previously deleted record
SYNOPSIS
#include "dbl.h" int dbrecall(dbf, recno) <input parameters> char *dbf; /* .DBF file descriptor */ long recno; /* Record number */ <output parameter> none
RETURN VALUE
The dbrecall() function returns 0 for success, or < 0 if an error occurs. See the section on return code values for a detailed list of return codes.
DESCRIPTION
This function recalls or restores the ACTIVE status of a record that has been previously marked deleted.
EXAMPLE
This example recalls the 15th record in the .DBF file whose file descriptor is in "char *dbf"
#include "dbl.h" char *dbf; /* .DBF file descriptor */ int rc; /* Return code */ rc = dbrecall(dbf, 15); if (rc == SUCCESS) printf("record recalled \n"); else { printf("error number %d \n", rc); exit (1); }