• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

excel vba question by ref by value

i have read many books and i try to explain the difference between "By Ref" and "By Value" by a good example. but could not find a good example.

can any please shed light?

thanks.
0
ProfessorJimJam
Asked:
ProfessorJimJam
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
if you define a procedure having a parameter "by value", you cannot get have your variable get modified by the procedure, while if you have the parameter "by ref", the procedure can modify it...
see the explanations here:
http://msdn.microsoft.com/en-us/library/ddck1z30.aspx
the example is vb.net code, but the principle is exactly the same
0
 
ProfessorJimJamAuthor Commented:
thank you
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now