Under normal circumstances, Vermont Views updates the form when necessary. However, if you have altered the form in one of your user functions, or if you wish to erase the user's data and replace it with the data in the underlying data variables, you may wish to update the form yourself.
The call for fm_upd() is as follows:
|
fm_upd() updates all form background items, fields, and field contents by calling fm_updbg() and fm_updflds(). Fields and memos that have no underlying variable are cleared.
The equivalent function for menus is mn_upd(). The call for mn_upd() is as follows:
|
mn_upd() is most often used when you have changed the checkmark status of a menu field or changed the attributes of a menu field.
fm_upd() and mn_upd() can only be called for forms that have been initialized. The form is initialized when it is put on the screen; you can also initialize it without putting it on the screen by calling fm_ready().