dynamic widget [message #56090] |
Wed, 03 October 2007 12:26 |
francois[1]
Messages: 3 Registered: October 2007
|
Junior Member |
|
|
Hello,
I want to display a window in which a user can enter some values. The
number of values to enter is variable.
I wrote the following code with the number of values set to 5.
nVal =5
TLB = widget_auto_base(title='Ente reliability coefficient values')
row_base = lonarr(nVal)
p = lonarr(nVal)
for i=0, nVal-1 do begin
row_base[i] = widget_base(TLB, /row)
v = 'coeff' + strtrim(string(i+1),2)
p = widget_param(row_base[i], /auto_manage, dt=2,
prompt='Band'+strtrim(string(i+1),2)+' ', uvalue=v)
print, v
endfor
out = auto_wid_mng(TLB)
The problem is that I can not retrieve the five values which are
called here out.coeff1 to out.coeff5.
How can I have a result such a out.v[0] to out.v[4] ?
What am I missing ?
Francois.
|
|
|