This is a newbie question, have the following code, which works acceptably but am wondering if there is a simpler way to do it? I want to have a list box with a selection of integers or real numbers available as choices. I want to read the operators selection, do some calculations with this choice and then output them back to a different dialog box. If there is a way I would store the originals in the intput box as integers or reals, rather than strings. As it is I read a string, convert it to and integer, do the calculations, convert back to an string and then send it back to the other dialog box.
I'm sure this is trivial, let me know if there is a more straight forward way.
logical retlog ! read input from dialog box retlog = DlgGet( dlg, idc_input, index ) ! convert string to integer read(index,*) value ! perform calculations value3=value*3 ! convert integer value back to string write(index2,'(I4)') value3 ! send output as string back to different dialog box retlog = DlgSet( dlg, IDC_OUTPUT, index2 )