Girault France a écrit :
> 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 ?!
>
Hello France,
You can use *getNextChoiceIndex*() that will return the number in your
list, starting at 0 I think.
Thomas
>
>
>
>
> 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
>
>
>
> .
>
>
--
/*****************************************************/
Thomas Boudier, MCU Université Pierre et Marie Curie
Imagerie Intégrative,Institut Curie - INSERM U759.
Tél : 01 69 86 31 72 Fax : 01 69 07 53 27
/*****************************************************/