Updates a choice list
| Call | ||
| #include <vv_clist.h> | ||
| int cl_upd(clistp) | ||
| CLISTPTR clistp | Choice list to update | |
| Returns | ||
| 1 | The choice list was successfully updated | |
| 0 | Error. VV_ERR is set to one of the following: | |
| KWDNOTFOUND
ERRREAD FILETOOBIG |
The keyword marking the choice list was not found in the memory file.
An error occurred while trying to read the memory file. The keyworded section used by the choice list is too large to fit in the memory file. |
|
| Description
cl_upd() calls mf_rsatt() which sets the memory file to operate within the appropriate keyworded section, and removes all highlights from that section. If the current choice list item is not visible, scrolling will occur to make it so. The current item is then highlighted with the active color, and the list is displayed with mf_disp() If a keyword was set prior to calling this function, the memory file is restored so that it operates on the keyworded section that was active when cl_upd() was called. |
||