ContextMenu[CurrentContext][Categories]
Get
get the procedure or list associated with an entry generator
Calling Sequence
Parameters
Description
Examples of Categories[Get]
Categories[Get](entry)
entry
-
string; text of menu entry
The Categories[Get] command returns the category name associated with the menu entry entry.
MyContextModule := StandardContext:-Copy();
MyContextModule:=moduleoptionpackage;localListTestsPassed,ListTypesPassed,ListTestsRun,ListTypesRun,ListTestsByType,ExpressionHandler,BuildActionList,GetTestResult,IsEntryActive,SubmoduleLoadSet;exportEntries,Queries,EntryGenerators,HandleExpression,Categories,Copy,TypeTree,EntriesTests_by_Types,ActivityTests,Input,Load,_pexports;end module
with(MyContextModule);
Categories,Copy,Entries,EntryGenerators,HandleExpression,Queries
Check, re-set then check the category associated with the entry "Language Conversions".
Categories[Get]("Language Conversions");
Category 2
Categories[Set]("Language Conversions", "Category 1");
Category 1
Add an entry and retrieve its category.
Entries[Add]("My Integer Factors", "ifactors(%EXPR)", integer, category="Category 2"):
Categories[Get]("My Integer Factors");
See Also
Categories/List
Categories/Set
ContextMenu
Download Help Document