dialog box
Posted by
Girault France on
URL: http://imagej.273.s1.nabble.com/dialog-box-tp3702255.html
Dear all,
I have a dialog box that give some choices :
Dialog.addChoice("Scanning mode",newArray("12", "4", "line"));
scanmode=Dialog.getChoice();
A string is returned to scanmode, but I would rather like to return a numerical value:
The value 12 would be 1, 4 would be 2 and line would be 3.
I'm sure this is very trivial, but I really don't know how to do.
Can anybody help me ?!
Many thanks,
France
France Girault
Geological Institute
CAB E-62
ETH Zürich
Universitätstrasse 6
8092 Zürich
[hidden email]
Private phone : ++4178/726.99.20
Office phone : ++4144/632 84 16