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

Home » Public Forums » archive » checking the data type in IDL
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
checking the data type in IDL [message #67891] Tue, 08 September 2009 00:30
b.a is currently offline  b.a
Messages: 26
Registered: July 2009
Junior Member
Hi,

In the middle of my IDL program, I need to check the type of a
variable in order to decide what to do with it. I mean, I have to
check whether variable1 is a STRING or FLOAT (for example). Like this:

IF variable1 "is STRING' do .....
else do ...

Of course "help, variable1" will not help as it shows the answer on
the consol and I can't use it that way. If anybody knows how to do so,
please let me know. Thanks.

Cheers
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: use of loops in IDL for hashtable
Next Topic: xplots3D - colorbar

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

Current Time: Wed Oct 08 15:15:47 PDT 2025

Total time taken to generate the page: 0.00514 seconds