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

Home » Public Forums » archive » Re: TLB_GET_SIZE - strangeness!
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
Re: TLB_GET_SIZE - strangeness! [message #4494] Thu, 15 June 1995 00:00
David S. Foster/Admin is currently offline  David S. Foster/Admin
Messages: 14
Registered: May 1995
Junior Member
Remember that SIZE() is an IDL function, so SIZE(0)
evaluates to a 3-element array containing dimension/
data-type info for the value 0.

Just use a different name for your variable.

Dave
Re: TLB_GET_SIZE - strangeness! [message #4539 is a reply to message #4494] Mon, 12 June 1995 00:00 Go to previous message
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
T (kotsines@benji.Colorado.EDU) wrote:
: On the topic of re-sizing, can anyone explain the following:

: > B = WIDGET_BASE( title = 'testing' )
: > WIDGET_CONTROL, B, /REALIZE
: (re-size B to arbitrary size via the mouse)
: > WIDGET_CONTROL, B, TLB_GET_SIZE = size
: > print, size

: 209 273

: > help, size

: SIZE INT = Array(2)

: > print, size(0)

: 0 2 1

: > help, size(0)

: <Expression> LONG = Array(3)


: ...am I missing something? How can I access the two integer elements of size?

: Confused,
: Tom

Very simple. SIZE is an IDL function -- when you just give the name as in
"print, size" it gives the value of the variable but if you subscript it,
it then uses the function SIZE to return info on its argument.

Solution: change the name to (e.g.) SIZ_BAS

--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
Re: TLB_GET_SIZE - strangeness! [message #4597 is a reply to message #4539] Fri, 02 June 1995 00:00 Go to previous message
Jyothi Kirani is currently offline  Jyothi Kirani
Messages: 2
Registered: June 1995
Junior Member
I think the problem is that you are using size as a variable to hold the table
size. Since size is also a key word the results you have got are confusing.
Try changing the variable name size to some other name. I tried it, it works.

-jyothi.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Default Fonts for IDL
Next Topic: Re: problems w/PS images

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

Current Time: Fri Oct 10 02:07:52 PDT 2025

Total time taken to generate the page: 0.31764 seconds