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

Home » Public Forums » archive » Define a variable
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: Define a variable [message #80498 is a reply to message #80352] Wed, 13 June 2012 01:12 Go to previous message
dplatten is currently offline  dplatten
Messages: 32
Registered: December 2007
Member
On Wednesday, June 13, 2012 8:07:58 AM UTC+1, hadi wrote:
> Hi
> I have a question about variable. How to determine if variable is
> 'undefined'? Thank you
> Best, Hadi

Try,

PRINT, N_ELEMENTS(x)

or, try

numElements = N_ELEMENTS(x)
PRINT, numElements

This method of checking whether a variable is defined is in the IDL help.

Regards,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem
Next Topic: cgwindow png export and window size

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

Current Time: Fri Oct 10 10:34:59 PDT 2025

Total time taken to generate the page: 0.80231 seconds