I am ready to file this one under 'w' for tWilight zone weird!
I have a user control class, and have this in the definitions
Private Const m_def_FillColor As Long = &H99FF
THEN:
Private Sub UserControl_InitProperties()
m_FillColor = m_def_FillColor
Now if I investigate in the immediate window:
? m_def_FillColor
-26113
I figure. Ok. That might be why I am getting an error when I attempt to use this as color. I check the hexadecimal value and get:
? hex( m_def_FillColor )
FFFF99FF
Bizarre, right?
So I do a check on the value &h99ff in the immediate window:
? &h99ff
-26113
Hmm.. weird, right?
I try forcing the cast and being explicit with the conversion:
? clng( &h000099ff )
-26113
And just for 'shits and grins' I do a conversion between the two:
? hex( clng( &h000099ff ) )
FFFF99FF
and just for fun, i check out a nonconverted cast:
? hex( &h000099ff )
99FF
Buyt JUST in case. I figure, I am going to see what's goin on with the actual decimal value:
? hex( clng( 39423 ) )
99FF
In any case. I'm shuttin down for the evening, I figure I have a memory issue and just need to reboot, I have tried restarting the project so that's not the issue.
In any case, has anyone ever seen this kind of issue?
I am hoping a reboot and a good night's sleep 'cures' it..
But... am i doing something obvious and/or ignorant and flat out missing something?
My goal is to plug the value &h000099ff into a long value. I'm pretty good with Visual Basic programming, this is something I've done billions of times, so I just wanna make sure I am not missing something obvious here!
Goodnight and thank you in advance for helping with this.. weirdness...
I blame a memory issue. But still not sure.