_msrsz.utl - Resize Menu Template
Syntax
call "_msrsz.utl",menu_record$,new_total_items,insert_at,delete_from
Description
The _msrsz.utl utility resizes a menu template, retaining all existing data. Templates are initially created in _msmktpl.utl or _mkdlog.utl. The new fields in the template must be loaded after the resize operation.
Parameter |
Description |
menu_record$ |
Menu template string created via _msmktpl.utl or _mkdlog.utl. |
new_total_items |
Total number of items in the template and those to be added. |
insert_at |
Add new items starting at this position in the template. |
delete_from |
Delete items starting at this position in the template. |
Example
The following adds a new item to the end of the MENU$ template, which is assumed to have only five items before the add:
LET BBEXT$=STBL("BBEXT")
CALL BBEXT$+"_msrsz.utl",MENU$,6,6,0
The following deletes the first item from the MENU$ template, which is assumed to have six items before the deletion:
LET BBEXT$=STBL("BBEXT")
CALL BBEXT$+"_msrsz.utl",MENU$,6,0,1