Hi,

I'm saving the forecolor and backcolor of my labels to a text file as hex values...

print #1, "lbl1.fc=" & Hex(label1.forecolor)
print #1, "lbl1.bc=" & hex(label1.backcolor)

Therefore, my file would look like

lbl1.fc=80000012
lbl1.bc=FFFFFF

When I read those values back in, how do correctly insert those values to the forecolor and backcolor properties?

The values are (at the moment) read in as a string, so how do I convert them to hex values without changing the value of the value?

I can't say label1.forecolor = hex(80000012) because the number is already hex! I can't convert the string to a long because FFFFFF is not recognised as a number!

Any clues appreciated.

Thanks,

Mark