ContextMenu[CurrentContext][Queries] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Context-Sensitive Menus : CurrentContext : Queries : ContextMenu/CurrentContext/Queries/List

ContextMenu[CurrentContext][Queries]

  

List

  

list queries defined for context menu module

 

Calling Sequence

Description

Examples of Queries[List]

Calling Sequence

Queries[List]()

Description

• 

The Queries[List] command lists the names of the queries that are available within this context menu module.

• 

Each string in the list returned by Queries[List] is the name of a query defined for this context menu module with Queries[Add].

• 

The associated procedure with a name in the returned list may be viewed using the Get command, or run with the Run command.

Examples of Queries[List]

newCM := ContextMenu:-New():

newCM:-Queries:-Add("set of size 3", proc(e) type(e, 'set') and evalb(nops(e)=3) end proc):
newCM:-Queries:-Add("variables", proc(e) indets(e, 'name') end proc):
newCM:-Queries:-Add("is_parseable", proc(e) try parse(e); true catch: false; end try; end proc):

  

List the names of the queries available in this context menu module.

newCM:-Queries[List]();

is_parseable,set of size 3,variables

(1)

See Also

ContextMenu

ContextMenu[CurrentContext][Queries]

Queries/Add

Queries/Get

Queries/Run

 


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