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

Home » Public Forums » archive » Re: Test if variable is a string
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
Re: Test if variable is a string [message #33885] Tue, 04 February 2003 19:10
Richard French is currently offline  Richard French
Messages: 173
Registered: December 2000
Senior Member
"David Fanning" <david@dfanning.com> wrote:


>
> I just point out that in code you want to be able
> to read and understand later,....

Gee, who would want to do that?

Does anyone here remember the glory days of FORTH?
A true 'write-only' language. It's like reading raw
Postscript and trying to remember what is on the stack
And how it got there.

Which makes me think about all of the other dead programming languages out
there - does anyone still use Pascal? I seem to recall that the original Mac
code was written in Pascal - about as different a language from IDL as I can
think of.

Dick French
Re: Test if variable is a string [message #33903 is a reply to message #33885] Tue, 04 February 2003 08:21 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman (kpb@null.com) writes:

> type = SIZE(variable, /TYPE)

I just point out that in code you want to be able
to read and understand later, that the TNAME keyword
is also useful. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Test if variable is a string [message #33904 is a reply to message #33903] Tue, 04 February 2003 07:23 Go to previous message
Carsten Dominik is currently offline  Carsten Dominik
Messages: 45
Registered: February 1998
Member
>>>> > "KPB" == Kenneth P Bowman <kpb@null.com> writes:

KPB> In article <qzu65s0xtbv.fsf@sand.science.uva.nl>,
KPB> Carsten Dominik <dominik@_DROP_THIS_science.uva.nl> wrote:

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

KPB> type = SIZE(variable, /TYPE)

KPB> What, that isn't obvious? ;-)

Exactly! :-) Thanks

- Carsten
Re: Test if variable is a string [message #33910 is a reply to message #33904] Tue, 04 February 2003 05:23 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <qzu65s0xtbv.fsf@sand.science.uva.nl>,
Carsten Dominik <dominik@_DROP_THIS_science.uva.nl> wrote:

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

type = SIZE(variable, /TYPE)

What, that isn't obvious? ;-)

Ken Bowman
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: endless loops suck
Next Topic: Re: PNGs with alpha channel?

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

Current Time: Wed Oct 08 15:37:12 PDT 2025

Total time taken to generate the page: 0.00467 seconds