![]() | Programming Guide | ![]() |
Removes a script from memory and destroys all menus installed from it
int sm_mnscript_unload(int mem_location, char *script);
mem_location- The memory location that contains the menu script, one of the following constants:
MNL_APPLIC
MNL_SCREEN
MNL_FIELDscript- The menu script to unload. An argument of
NULLunloads the script last loaded inmem_location.
- 0
MNERR_OK: Success.
sm_mnscript_unloadremovesscriptfrom the specified memory location and destroys all menus that are installed from it. If any of those menus are currently displayed, Panther removes them immediately. If a menu is referenced as an external menu, Panther displays an empty menu in its place.