Programming Guide



sm_mnscript_unload

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_FIELD

script
The menu script to unload. An argument of NULL unloads the script last loaded in mem_location.

Returns

Description

sm_mnscript_unload removes script from 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.

See Also

sm_mnscript_load