D
darrel
I'm still trying to sort out in my head the differences between public and
shared when referring to declaring properties or variables. This is my
understanding:
shared - akin to a 'global' variable for the application. Any other code
within the application can access it.
public - can be shared across the application if instatiated.
Does that sound about right? It seems these are more useful for methods
rather than variables. Most of the time, I imagine that I'd use shared if I
want to set a variable that other controls can see.
The other question, is what does 'private shared' mean? Is that shared but
only with in the particular class?
-Darrel
shared when referring to declaring properties or variables. This is my
understanding:
shared - akin to a 'global' variable for the application. Any other code
within the application can access it.
public - can be shared across the application if instatiated.
Does that sound about right? It seems these are more useful for methods
rather than variables. Most of the time, I imagine that I'd use shared if I
want to set a variable that other controls can see.
The other question, is what does 'private shared' mean? Is that shared but
only with in the particular class?
-Darrel