I want to know if a label is in the menu or not before adding it. I was expecting
[$menu index $label] to return a negative value if not. But to my surprise, it errs.
Then I had a hard time to figure out a way, much longer than a minute!
Is there a built-in way of getting the number of the entries in a menu?
I think there are useful features with menu that are badly missing; I could be wrong though.
Now I need to figure out a workaround for something that seems to be a minute of work.
It's a pain.
[$menu index $label] to return a negative value if not. But to my surprise, it errs.
Then I had a hard time to figure out a way, much longer than a minute!
Is there a built-in way of getting the number of the entries in a menu?
I think there are useful features with menu that are badly missing; I could be wrong though.
Now I need to figure out a workaround for something that seems to be a minute of work.
It's a pain.