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

Home » Public Forums » archive » Re: regarding scope of variables
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: regarding scope of variables [message #46508 is a reply to message #46501] Sat, 26 November 2005 06:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
IDLmastertobe writes:

> Thanks Dr.Fanning. I never used pointers IDL. It looks like the variable
> "yarr" only exists in this one procedure and as soon as the procedure is
> called again, "yarr" is no longer defined if !firsty is not 1. Is there a
> way to declear a global dynamic variable that can preserve value when the
> procedure is called multiple times and the size of the variable can vary
> depending on the array we are copying? such as Vector function in C++ and
> JAVA.

I think you are looking for a pointer. :-)

You might like to read the pointer tutorial:

http://www.dfanning.com/misc_tips/pointers.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: iMap & contouring question
Next Topic: Pointer Type Question

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

Current Time: Wed Oct 08 19:58:28 PDT 2025

Total time taken to generate the page: 0.00238 seconds