This is wierd.
I'm saving the color to the file like this
This writes me 8388608, 255, 12632064.. depending in the colorVB Code:
Val(Color(i).BackColor)
I'm reading it like this
BasicColor as a public Long.VB Code:
BasicColor = Val(InputLines(1)) 'This code is good
If i MsgBox BasicColor at the end of the reading process it will show me the saved color, same as in the file.
But then, if i MsgBox BasicColor from another form it will give me 255 (Default color as i set)
What is goin on?




Reply With Quote