Field Definition and Processing

  #include <vv_form.h>

#include <vv_memo.h>

#include <vv_push.h>

#include <vv_lbox.h>

For all except as noted below.
memo_def ( )

pb_def ( )
lbox_def ( )

   
void fld_blank (FIELDPTR fldp, DFORMPTR dfmp)

Clears a data or memo field and redisplays it with blanks

CLISTPTR fld_clistp (FIELDPTR fldp)

Returns the pointer to the choice list attached to the data or tickertape memo field

DFIELDPTR fld_def (int prompt_rb, int prompt_cb, UCHAR *promptp, int fld_cb, UCHAR *picp, int fld_type, PTR datap, DFORMPTR dfmp)

Defines a field and its prompt by setting initial values for a field structure

int fld_get (PTR varp, FIELDPTR fldp, FORMPTR fmp)

Gets the converted data from the specified field on the form

long fld_isaltered (FIELDPTR fldp)

Determines if the user has edited the data or memo field

int fld_isblank (FIELDPTR fldp, DFORMPTR dfmp)

Determines whether a field is blank or not

long fld_isvalidated (FIELDPTR fldp)

Determines if the data or memo field has passed validation

int fld_upd (PTR varp, FIELDPTR fldp, DFORMPTR dfmp)

Updates the value displayed in a data field

void fld_updatt (UCHAR att, FIELDPTR fldp, FORMPTR fmp)

Redisplays the field with the specified video attribute

LBOXPTR lbox_def (int lbox_rb, int lbox_cb, int rowq, int colq, int datalen, UCHAR *datap, UCHAR *kwdp, MFILEPTR mfp, DFORMPTR dfmp)

Defines a list box field

MEMOPTR memo_def (int prompt_rb, int prompt_cb, UCHAR *promptp, int memo_cb, int rowq, int colq, UCHAR *datap, DFORMPTR dmfp, int memo_rowq, int memo_colq)

Defines a memo field and its prompt

MFIELDPTR pb_def (int rb, int cb, BG_BOXPTR boxp, UCHAR *stp, PFI action_fp, DFORMPTR dfmp)

Defines a pushbutton field

int pb_select (DFORMPTR fmp, EVENTPTR eventp)

Calls the action function associated with the currently highlighted pushbutton

UCHAR * pic_def (int pic_ch, int len)

Allocates and builds a picture string

int pic_val (UCHAR *picp, UCHAR *allowed_picch, int flags)

Validates the picture string for any field type



Home Contents Previous Next