Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: optionmenu.findvalue - Function Up: optionmenu - Tool Previous: optionmenu.findlabel - Function


optionmenu.findname - Function



Package display
Module widgets
Tool optionmenu


Find the index of the item with the given name


Synopsis
findname(name)


Arguments

name The menu item name
Allowed: Same type as the array ``names'' used in construction


Returns
Integer or F


Description
This tool function find the index in the menu of the item specified by its name. If you give an invalid name, F is returned.



Example
- labels := "Abs RelRef RelCen";
- names := ['Absolute', 'Relative to ref. pixel', 'Relative to center'];
- values := [10, 20, 30];
- f := frame();
- m := optionmenu(f, labels, names, values);
- m.findname('Relative to ref. pixel');
2





next up previous contents index
Next: optionmenu.findvalue - Function Up: optionmenu - Tool Previous: optionmenu.findlabel - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15