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

Home » Public Forums » archive » Test if variable is a string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Test if variable is a string [message #33913] Tue, 04 February 2003 01:56 Go to previous message
Carsten Dominik is currently offline  Carsten Dominik
Messages: 45
Registered: February 1998
Member
Hello,

I must be blind: How do I test for the type of the object contained
in a variable? I am writing a procedure and want to allow one of the
arguments to be either a string or a number - but the program must of
course find out which it is?

This is my main problem with IDL: I am *never* able to correctly guess
the name of a function for a particular purpose.

So what is the magic word for determining the type of a variable?
Thanks.

- Carsten
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Printing line number of an error
Next Topic: UNIQ without SORT

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

Current Time: Wed Oct 08 18:42:46 PDT 2025

Total time taken to generate the page: 0.00391 seconds