I always thought it was good practice to group similar variable together on a line (within reason).
eg
Dim std20, std40, HC40, HC45 As Boolean
I just discovered that the above does not work.
I have check boxes and for example if I uncheck the std40 & HC45 the variable results are as follows....
std20
Value: -1
Type: Variant/Integer
std40
Value: 0
Type: Variant/Long
HC40
Value: -1
Type: Variant/Integer
HC45
Value: FALSE
Type: Boolean
if I now change the variable declaration to ....
Dim std20 As Boolean
Dim std40 As Boolean
Dim HC40 As Boolean
Dim HC45 As Boolean
they all come across correctly as Boolean and TRUE or FALSE ???
I don't need this crap, I feel like I am still debugging beta. Is there a rule I am missing for this method of declaring variables. I usually do it the long way but sometimes I like to keep it tidy so I think I am doing a better job like this??? grrr!
eg
Dim std20, std40, HC40, HC45 As Boolean
I just discovered that the above does not work.
I have check boxes and for example if I uncheck the std40 & HC45 the variable results are as follows....
std20
Value: -1
Type: Variant/Integer
std40
Value: 0
Type: Variant/Long
HC40
Value: -1
Type: Variant/Integer
HC45
Value: FALSE
Type: Boolean
if I now change the variable declaration to ....
Dim std20 As Boolean
Dim std40 As Boolean
Dim HC40 As Boolean
Dim HC45 As Boolean
they all come across correctly as Boolean and TRUE or FALSE ???
I don't need this crap, I feel like I am still debugging beta. Is there a rule I am missing for this method of declaring variables. I usually do it the long way but sometimes I like to keep it tidy so I think I am doing a better job like this??? grrr!