Clearing the Contents of a Field or Scrollable Region Row

You can clear the contents of a data field, memo field, or a field in a scrollable region. Additionally, a function is provided to clear all the fields in one row of a scrollable region.

To clear the contents of a data field or memo field, call the field blank function, fld_blank():

void fld_blank(fld_or_memop, dfmp)
 
FIELDPTR fld_or_memop;
/* Pointer to field or memo to update
*/
DFORMPTR dfmp;
/* Form being processed
*/

To clear the contents of a field in a scrollable region, call the scrollable region field blank function, srf_blank():

void srf_blank(data_row, data_col, srp)
 
int data_row;
/* Data row of scrollable region
*/
int data_col;
/* Data column of scrollable region
*/
SRPTR srp;
/* Scrollable region
*/

To clear all the fields in one row of a scrollable region, use the scrollable region blank row function, sr_rowblank():

void sr_rowblank(data_row, srp)
int data_row;
/* Data row of scrollable region
*/
SRPTR srp;
/* Scrollable region
*/


Home Contents Previous Next