Need help about visual studio Write the Sub prototype for a
Need help about visual studio
Write the Sub prototype for a procedure which is named MyData and has first parameter as a string which can be changed and second parameter of an integer which can not be changed.
Solution
One permits the first parameter to alter... the opposite makes a replica of the Parameter...Basically once you use By Val you are employing a completely different variable with constant price at intervals the operate or sub. If you alter the worth within the operate it is no result on the variable within the vocation routine. If you employ By official then you are passing a regard to the first variable thus any changes created within the operate or sub routine are going to be mirrored in variable within the vocation routine. So By Val can not amendment the first variable, By official will amendment the first variable.