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

Home » Public Forums » archive » accesing variables defined in a higher program level
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
accesing variables defined in a higher program level [message #33950] Thu, 06 February 2003 08:26
Isa Usman is currently offline  Isa Usman
Messages: 13
Registered: October 2001
Junior Member
Hello,

I am trying to get a function to use variable values that are defined in a
higher level procedure. Since COMMON blocks can't be used in functions is
there a way round this? here is an example of what i am trying to do;

Pro high_level
x=1
y=1
z=1

I=integrate('f_x',z)
end

function integrate,z
........
........
call function f_x
i=........
return,i
end

function f_x, z
w=x+y+z
return, w
end

Many thanks

Isa
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: de la doc sur pv wave
Next Topic: Re: accesing variables defined in a higher program level

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

Current Time: Wed Oct 08 14:55:54 PDT 2025

Total time taken to generate the page: 0.00398 seconds