Hello Experts -
Got a question. I've got a simple function that conceptually looks something like this:
Public Function DoSomething ( Value1, Value2 )
DoSomething = 123
Now let's say that in the process of arriving at the result ("123"), Value1 changes from what was the intially passed value. Let's say Value1 was 1. And, in the course of calculating, Value1 becomes the value 5.
It seems in VB.NET that to the calling program, Value1 always remains a 1. That's both before and after the function is called.
This seems to be very desirable because it prevents the calling program from becoming contaminated from bugs in the Function DoThing.
But, how about on occasions when you would like more than one value being returned. You wanted to know if Value1 had changed and you want to know its new value.
Is it possible to tell VB.NET that you want Value1 to change when control is returned to the original program?
Sorry, but Iif the answer seems obvious , you should realize that I never took a programming course.