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

Home » Public Forums » archive » Re: Defining constants in IDL?
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: Defining constants in IDL? [message #31307 is a reply to message #31306] Mon, 24 June 2002 06:04 Go to previous messageGo to previous message
Robert Stockwell is currently offline  Robert Stockwell
Messages: 74
Registered: October 2001
Member
Bob wrote:

> I have a quick question. I am a big newbie when it comes to IDL, but
> the place that I work at uses it extensively. I am used to C/C++, and
> I want to know how does one define a constant in IDL (similar to
> #DEFINE TRUE 1 in C/C++). I have read through the user manuals, but to
> no avail. Also, are there any good tutorials online to help a
> struggling newbie like me? The user manuals 'cover' all the material,
> but rather poorly.
>


in your startup file, you can define system variables

DEFSYSV, '!imag', complex(0,1)
DEFSYSV, '!twopi', 2*!dpi


print,!twopi


CHeers,
bob
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Delvar?
Next Topic: Re: write_jpeg and TVRD()

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

Current Time: Sat Oct 11 14:39:37 PDT 2025

Total time taken to generate the page: 1.19965 seconds