Compiler errors when setting the clist_mfp member of the DFMINFO structure

The compiler returns an error because the clist_mfp variable that you are using has not been initialized. You can't set the member in the DFMINFO structure until after you have called mf_def() to initialize clist_mfp.

Set the clist_mfp member to NULLP and then do a direct assignment of that structure member:

mfp = mf_def(rq,cq);

fminfop[n].clist_mfp = mfp;

where fminfop is the DFMINFO array pointer, n is the index and mfp is the choice list memory file that is being assigned. Or, it can be done in the following manner after the form is read into memory:

mfp = mf_def(rq,cq);

dl_mnget(. . .);

. . .

sfm_mfclist("formname", mfp);

. . .mn_proc(. . .)


Home Contents Previous Next