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

Home » Public Forums » archive » Re: Updating existing IDL table widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Updating existing IDL table widget [message #31371] Wed, 10 July 2002 12:41 Go to previous message
MKatz843 is currently offline  MKatz843
Messages: 98
Registered: March 2002
Member
> ColLabels = SINDGEN(5) & ColLabels(0) = STRING('Slice location') &
> ColLabels(1)= STRING('Slice number') &
> ColLabels(2)=STRING('Concentration') & ColLabels(3)=STRING('Approx.
> dia') & ColLabels(4)=STRING('Vol. sig.> bg')

I can't help you with the WIDGET_TABLE, but I can offser some
unsolicited IDL advice. You might consider re-writing the above code
to look like so...

ColLabels = ['Slice location', 'Slice number', 'Concentration',
'Approx. dia', 'Vol. sig.> bg']

In IDL, the pre-definition of arrays isn't required. Also the STRING()
typecast isn't required unless you're changing data from one type to
another (e.g. numeric to string).

Once ColLabels is defined, you can add Column Labels with this

ColLabels = [ColLabels, 'New Label']

and repeat that as much as you'd like, appending new elements each
time.

M. Katz
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Using idlrt.exe
Next Topic: Executable

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

Current Time: Fri Oct 10 22:53:36 PDT 2025

Total time taken to generate the page: 0.39915 seconds