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

Home » Public Forums » archive » Re: Static Variables 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: Static Variables in IDL [message #5913 is a reply to message #5901] Wed, 13 March 1996 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <4i7ara$606@vixen.cso.uiuc.edu>, santanu@ux7.cso.uiuc.edu (Santanu Bhattacharyya) writes:
> Hi,
> Is there a way to statically allocate variables in IDL ? I would
> like to define a static variable in a .pro which is repeatedly called
> from an upper level. I am specifically looking for the IDL counterpart
> of
> static int testint;
>

Yes, it is easy. Use a common block. Make the name of the common block unique
enough that you can be sure it won't conflict with common blocks used in other
procedures.

common unique_name, testint
testint = 14

testint will have the value 14 the next time the .pro file is called.

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Surface
Next Topic: Re: Widgets - 3.6 -> 4.0 Aaarrrggghhh!!

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

Current Time: Wed Oct 08 19:24:06 PDT 2025

Total time taken to generate the page: 0.00392 seconds