What is the val option and ref option

Questions by mudduswamy   answers by mudduswamy

Showing Answers 1 - 3 of 3 Answers

lalita.p

  • Jan 7th, 2007
 

When we pass an argument to the prosedure or function we can pass it  with byVal,byRef,optional,param array.

Now the question is what is ByVal and By Ref

Ans.

when we pass an argument with byVal we pass the copy of the variable thats why the value of original variable doesn't chabge.but when we pass the argument with ByRef we pass the pointer thats why value of originale variable get change.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions