Get - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ContextMenu[CurrentContext][Categories]

  

Get

  

get the procedure or list associated with an entry generator

 

Calling Sequence

Parameters

Description

Examples of Categories[Get]

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]