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 
Return to the default flat view Create a new topic Submit Reply
Re: TLB_GET_SIZE - strangeness! [message #4539 is a reply to message #4494] Mon, 12 June 1995 00:00 Go to previous messageGo 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 | |
+----------------------------------------------------------- --+---------+
[Message index]
 
Read Message
Read Message
Read Message
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: Sat Oct 11 05:22:50 PDT 2025

Total time taken to generate the page: 0.32002 seconds