Subject: RE: SDL-News: Procedure call of a value returning procedure
From: Ramana Bhamidipati (venkatrb#future.futsoft.com)
Date: Sat Jan 09 1999 - 04:38:44 GMT
The originator of this message is responsible for its content.
-----From Ramana Bhamidipati <venkatrb#future.futsoft.com> to sdlnews -----
Ususally when a procdure is not returning a value a procedure call
can be made by just writing the name of the procedure
in the procedure call box (eg. XYZ(a,b,c) ), where XYZ is the name of
the procedure and a,b, c are the parameters that are being passed
onto the procedure. But when a return parameter is expected the same
procedure call has to be placed in the task box and the syntax for
calling the procedure looks somewhat like this
ReturnVal := CALL XYZ(a,b,c)
If a, b,c are defined as only of type IN inside the procedure, even if they are
modified inside the procedure the new values are not visible outside the
procedure, but otherwise defined as to be of type IN/OUT, wherein the values
of a, b and/or c are modified inside the procedure, they get reflected/available
in the main design from where the procedure is being called from.
This can be visualized in 'C' language for example--
IN corresponds to a parameter being received into a function but
the variable name into which it is being received becomes local to the
function.
But on the otherhand IN/OUT corresponds somewhat like passing the address of the
variable to the function and operating on the address.
Hope this info answers ur query.
regards
Ramana
Venkata Ramana Bhamidipati
Senior Software Engineer,
Future Software Pvt. Ltd.,
Ph :+91-44-433 0550 [Extn -313/312/310]
Fax : 4344157, 4834551, 4834661
mailto:venkatrb#future.futsoft.com
-----Original Message-----
From: Janos Bauer [SMTP:janos.bauer#eth.ericsson.se]
Sent: Friday, January 08, 1999 6:34 PM
To: sdlnews#sdl-forum.org
Subject: SDL-news: Procedure call of a value returning procedure
The originator of this message is responsible for its content.
-----From Janos Bauer <janos.bauer#eth.ericsson.se> to sdlnews -----
Hi,
I would like to know how to call a value returning procedure if it has
more than one IN/OUT parameter (of course I want to get them back).
Thanks for your help!
/Janos
-----End text from Janos Bauer <janos.bauer#eth.ericsson.se> to sdlnews -----
For help, email "majordomo#sdl-forum.org" with the body of your email as:
help
or (iff this does not answer your question) email: owner-sdlnews#sdl-forum.org
-----End text from Ramana Bhamidipati <venkatrb#future.futsoft.com> to sdlnews -----
For help, email "majordomo#sdl-forum.org" with the body of your email as:
help
or (iff this does not answer your question) email: owner-sdlnews#sdl-forum.org
This archive was generated by hypermail 2a23 : Sun Jun 16 2013 - 10:41:40 GMT