how can i get this value &cFFFFFF as a string from a color property ?
Just be aware that Str prepends the alpha value to the colors, which is not how it’s assigned. So if you have a color &cF1E1D1
, that’s the same as &cF1E1D100
, but Str will report it as &h00F1E1D1
.
Thanks a lot guys !
dim v as [quote=321191:@Kem Tekinay]Just be aware that Str prepends the alpha value to the colors, which is not how it’s assigned. So if you have a color &cF1E1D1
, that’s the same as &cF1E1D100
, but Str will report it as &h00F1E1D1
.[/quote]
which in the end doesn’t matter
dim c as color = &cF1E1D100
dim c1 as color = Color(&h00F1E1D1)
dim v as variant = &h00F1E1D1
dim c2 as color = v.ColorValue
in the &h form its stated as ARGB, in the &c form its RGBA