Ziad El:
Hi
The following is getting me a "Possible loss of data due to type conversion".
But I can't get it: what could this ObjectGet give other than color data?
ObjectGet() returns a double.
You are trying to stuff a double into a color.
It might work; it might not. The compiler doesn't know. So it is giving you a heads up.
To fix it, you can typecast it.
color Color1 = (color) ObjectGet(Label1, OBJPROP_COLOR);
Thank you Anthony!
That solved it.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
The following is getting me a "Possible loss of data due to type conversion".
But I can't get it: what could this ObjectGet give other than color data?