But assume the text for my added menu item is "Check/format". I can't have a REXX label of "Check/Format" since the / character is illegal in a REXX label. What do I do then?
Illegal chars (including spaces) get replaced by an underscore when REXX GUI looks for the matching label in your script. In the above, that would be "Check_Format".
Furthermore, you don't have to use the menu text as the REXX label. You could specifically assign your own variable name to a menu item when you add it. The MENU line you pass to GuiAddMenu() allows it.
There's a mistake in the docs. The menu line components should be:
Furthermore, you don't have to use the label. You could specifically assign your own variable name to a menu item when you add it. The MENU line you pass to GuiAddMenu() allows it.
Sorry, didn't understand that. Can you give an example. Ie, what would the variable look like, and what would using a variable result in rather than having a label in the script ?