On 11/14/20 4:03 PM, Roger Guay via use-livecode wrote:
Can someone tell me how to delete a menuItem from an Option Menu button 
programmatically?

Standing by ready to apply dope slap.

No dope slap necessary - it's not really obvious.
The menuItems are stored as the text of the button, so you can get and set it easily.

put button <whichButton> into tText
-- edit tText here
-- you can do a lineOffset and delete line x of tText
put tText into button <whichButton>

--
 Mark Wieder
 [email protected]

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to