First of all, all numeric values returned to IDL through a text widget arrive as a string array datatype. That is, if you enter in a text box:
1.2345
then the commands:
widget_control, wText, GET_VALUE=text
help, text
should reveal the following about the 'text' variable
TEXT STRING = Array[1]
If you subsequently have a call like:
myFirstFloatEntry = float(text[0])
help, myFirstFloatEntry
you should see the following datatype and value assigned to the 'myFirstFloatEntry' variable:
MYFIRSTFLOATENTRY
FLOAT = 1.23435
Knowing this now, can you see where your capture of your numeric entries in your WIDGET_TEXT is going wrong?
James Jones
|