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


next up previous contents index
Next: extendoptionmenu.geteventmask - Function Up: extendoptionmenu - Tool Previous: extendoptionmenu.getlabels - Function


extendoptionmenu.findlabel - Function



Package display
Module widgets
Tool extendoptionmenu


Find the index of the item with the given label


Synopsis
findlabel(label)


Arguments

label The menu item label
Allowed: Same type as the array ``labels'' used in construction


Returns
Integer or F


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



Example
- labels := "m mm cm";
- f := frame();
- m := extendoptionmenu(f, labels);
- m.findlabel('cm');
3





next up previous contents index
Next: extendoptionmenu.geteventmask - Function Up: extendoptionmenu - Tool Previous: extendoptionmenu.getlabels - 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