Resolving or Overriding the Data References for a Scrollable Region

You can assign or reassign the underlying data structure associated with the fields on a scrollable region. The function to do this is the set scrollable region data pointer function, ssr_datap():

void ssr_datap(dstructp, srp)

PTR dstructp;        /* Pointer to data structure for scrollable     */

                    /* region data                        */

SRPTR srp;            /* Pointer to scrollable region            */

Generally, you will want to use ssr_datap() to assign a data structure to the scrollable region if you set the scrollable region structure to be omitted from the form structure or if you want to override the data structure associated with the scrollable region by a previous call to dl_fmget() or sfm_datap(). For instance, you may want to divert the values collected in the scrollable region to temporary variables.

Caution: If you do change the structure associated with the scrollable region, do not remove the member of the form's data structure reserved for this scrollable region. After the data references are resolved, Vermont Views relies on the data structure remaining the same.

You can also use this function in conjunction with sf_datap() to resolve the data references for the form by resolving each field and scrollable region on the form.


Home Contents Previous Next