Pass a Parmeter to an instance of a Form object without using Global variable declaration..??
Posted on 2006-10-23
I have been researching this question and so far I have not found an answer. I passed the Java programmer certification test but have never worked professionally in Java. So I'll use Java OOP terminlogy to describe what I am trying to do.
In Java I can declare a private class instance variable that is within scope to all methods in that class. Within that class, I can declare a publicly accessable method usually called a Getter or Setter method so that all methods in all objects can get or set the value of that private variable. Each object instantiated from that class has its own private instance variable so that the object that is an instance of that class does not have to share its private instance variable with other objects instantiated from that class.
This is a way of avoiding the risk involved with passing parameters to a form object which is an instance of its VB.NET form class declaration without going through a globally accessable variable. A risky proposition.
VB.NET won't let me declare a function in a form class or declare a Sub(routine) public as best I can tell without getting those squiggly blue lines that indicate a syntax error. I now have a
"Private ii_InsuredPickParm As Integer" though.