This is wierd.
I'm saving the color to the file like this
VB Code:
  1. Val(Color(i).BackColor)
This writes me 8388608, 255, 12632064.. depending in the color
I'm reading it like this
VB Code:
  1. BasicColor = Val(InputLines(1)) 'This code is good
BasicColor as a public Long.
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?