get the procedure or list associated with an entry generator - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Context-Sensitive Menus : CurrentContext : Categories : ContextMenu/CurrentContext/Categories/Get

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();

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

(1)

with(MyContextModule);

Categories,Copy,Entries,EntryGenerators,HandleExpression,Queries

(2)
  

Check, re-set then check the category associated with the entry "Language Conversions".

Categories[Get]("Language Conversions");

Category 2

(3)

Categories[Set]("Language Conversions", "Category 1");

Categories[Get]("Language Conversions");

Category 1

(4)
  

Add an entry and retrieve its category.

Entries[Add]("My Integer Factors", "ifactors(%EXPR)", integer, category="Category 2"):

Categories[Get]("My Integer Factors");

Category 2

(5)

See Also

Categories/List, Categories/Set, ContextMenu, ContextMenu[CurrentContext][Categories]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam