ContextMenu[CurrentContext][Categories][Get] - get the procedure or list associated with an entry generator
|
Calling Sequence
|
|
Categories[Get](entry)
|
|
Parameters
|
|
entry
|
-
|
string; text of menu entry
|
|
|
|
|
Description
|
|
•
|
The Categories[Get] command returns the category name associated with the menu entry entry.
|
|
|
Examples of Categories[Get]
|
|
>
|
MyContextModule := StandardContext:-Copy();
|

| (1) |
| (2) |
|
Check, re-set then check the category associated with the entry "Language Conversions".
|
>
|
Categories[Get]("Language Conversions");
|
| (3) |
>
|
Categories[Set]("Language Conversions", "Category 1");
|
>
|
Categories[Get]("Language Conversions");
|
| (4) |
|
Add an entry and retrieve its category.
|
>
|
Entries[Add]("My Integer Factors", "ifactors(%EXPR)", integer, category="Category 2"):
|
>
|
Categories[Get]("My Integer Factors");
|
| (5) |
|
|