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

Home » Public Forums » archive » Variable attributes and undef vars
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Variable attributes and undef vars [message #90235] Thu, 12 February 2015 15:01 Go to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
From the IDL docs: "All IDL variables have special attributes that return information about the variable. These attributes are equivalent to calling the N_ELEMENTS, SIZE, or TYPENAME functions."

This does not work for undefined variables:

IDL> help, n_elements(a)
<Expression> LONG = 0
IDL> help, a.length
% Expression must be a structure in this context: A.
% Execution halted at: $MAIN$
IDL>

Bug or feature? :-)

regards,
Lajos
[Message index]
 
Read Message
Read Message
Previous Topic: Linux-like touch command in IDL
Next Topic: IDL array subscripting issue

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

Current Time: Wed Oct 08 09:12:06 PDT 2025

Total time taken to generate the page: 0.00437 seconds