2007 May 09 8:19 PM
Hi all,
please, i want to know what is the <b>diference</b> between:
<b>pass by value</b>
<b>pass by value & result.</b>
2007 May 09 8:26 PM
Check the demo programs:
demo_mod_tech_example_1
demo_mod_tech_example_2
to find the exact difference.
Regards
Hi all,
please, i want to know what is the <b>diference</b> between:
<b>pass by value</b>
<b>pass by value & result.</b>
2007 May 09 8:26 PM
Check the demo programs:
demo_mod_tech_example_1
demo_mod_tech_example_2
to find the exact difference.
Regards
2007 May 09 8:29 PM
If you pass a parameter using pass by value, the passed value doesn't get affected when you change it inside the subroutine.
value = 1.
perform test using value.
write:/ value.
form test USING value(value) TYPE i.
value = 2.
write:/ value.
endform.
output would be
2
1
value = 1.
perform test using value.
write:/ value.
form test USING value TYPE i.
value = 2.
write:/ value.
endform.
output would be
2
2
Regards,
Ravi
2007 Jul 02 7:33 PM