W
Woody Splawn
I am finding that time after time I have instances where I need to access
information in a variable that is public. At the same time, the books I
read say that one should not use public variables too much - that it's bad
programming practice. Is there an easy way to deal with this? I would like
to do things in the "Best Practices" way but at the same time I don't want
to make a federal case out of it.
This comes up over and over again, for example, when using products like
Infragistics. If I do something to a record in a grid, I need to identify
which record we're talking about in the enter event, and then make that
value available in the After Bla bla event.
So that I don't have 30 different public variables, what's a better but
still relatively simple way of doing this? Or is it really that bad to have
all those public variables?
information in a variable that is public. At the same time, the books I
read say that one should not use public variables too much - that it's bad
programming practice. Is there an easy way to deal with this? I would like
to do things in the "Best Practices" way but at the same time I don't want
to make a federal case out of it.
This comes up over and over again, for example, when using products like
Infragistics. If I do something to a record in a grid, I need to identify
which record we're talking about in the enter event, and then make that
value available in the After Bla bla event.
So that I don't have 30 different public variables, what's a better but
still relatively simple way of doing this? Or is it really that bad to have
all those public variables?