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

Home » Public Forums » archive » Re: Pass Pointer through procedures
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: Pass Pointer through procedures [message #55255 is a reply to message #55254] Thu, 09 August 2007 07:11 Go to previous messageGo to previous message
payon is currently offline  payon
Messages: 11
Registered: July 2007
Junior Member
Oh thanks Mr. Fanning for your answer.
Well maybe I really read the wrong sources.
But now i tried a look in your book. and i found how to pass
variables through procedures.
But I have a small problem, lke you described it with the examlpe of
the image which is resized.
Of course, this works, but only if the image variable was defined
before the procedure was started. So After the procedure was executed,
the image variable wes changed by through the procedure and could be
read by other procedures.

But my problem is, just again a small example

i start a procedure like

pro imageopen, image
image=fltarr(300,300)
image=openfunction()
end

So here in this small procedure the variable is first defined in the
procedure itself. So it just should have the function as a output
variable, not as input variable-

but the problem is, when i execute the procedure with
IDL> imageopen

and then try to open the image
IDL> tvscl, image

He can't find the variable. So my question is. Can i just pass
variables, when I used them also as input variables, so when i defined
them before i called the procedure?
Like
IDL>image=fltarr(300,300)
IDL>imageopen, image
IDL>tvscl, image

?

greetings

martin
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Pass Pointer through procedures
Next Topic: Structure Containing Structure: question about parentheses

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

Current Time: Sun Oct 12 08:02:59 PDT 2025

Total time taken to generate the page: 0.24172 seconds