comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » dynamic widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
dynamic widget [message #56090] Wed, 03 October 2007 12:26
francois[1] is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: edit a large dataset
Next Topic: create geotiff

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 14:58:50 PDT 2025

Total time taken to generate the page: 0.56270 seconds