_mslst.utl Utility - Make Menu List
Syntax
call "_mslst.utl",menu_file$,detail_records$[ALL],items
Description
The _mslst.utl utility creates a string array and lists menu keys in a menu file. There must be at least one nonnull ("") key in the file.
| Parameter | Description | 
| menu_file$ | Name of menu file. The ".m"+STBL("LANGUAGE") extension is required. | 
| detail_records$[ALL] | Returned (dimensioned [1:ITEMS]) with each entry containing a key within the menu file. Predimensioning the string prior to the call is not required. | 
| items | Returned as the number of keys in the selected menu file. | 
Example
LET BBEXT$=STBL("BBEXT")
CALL BBEXT$+STBL("BBEXT")+"_mslst.utl",
 "_msedit.mam",MLIST$[ALL],ITEMS
In this example, users get:
| ITEMS | 9 | 
| MLIST$[1] | "acttype" | 
| MLIST$[2] | "casdirection" | 
| MLIST$[3] | "exit" | 
| MLIST$[4] | "keyaction" | 
| MLIST$[5] | "line" | 
| MLIST$[6] | "main" | 
| MLIST$[7] | "slidirection" | 
| MLIST$[8] | "submenu" | 
| MLIST$[9] | "type" | 
The item order is determined by the application.