Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2756

Re: Pass by value and reference

$
0
0

USE subroutines AS below.

 

perform <subroutine name> using <p1>

                                        changing <p2>.

 

 

 

form <subroutine name> using value(u_<p1>) type <type name> " pass value

                                    changing value(c_<p2>) type <type name>. " pass reference

 

<code>

 

endform.

 

 

the above is best practice for subroutines.

 

pass values are declare as using value.

pass reference are declare as changing value.


Viewing all articles
Browse latest Browse all 2756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>