RxDBColorBox1.Items.AddObject('SOmeName',TObject(StringToColor('clRed')));gives an error Error: Illegal type conversion: "TGraphicsColor" to "TObject"
Code: Pascal [Select][+][-] IntPtr = PtrInt;
Thanks for that,why do we need to use any of them - is this a bug?
Apparently Lazarus/32bit does not do this, it only happens with 64bit.
Good day. It will be confronted with the fact that in the 64-bit version of lazarus the expression is of the type:Code: Pascal [Select][+][-]RxDBColorBox1.Items.AddObject('Красный',TObject(StringToColor('clRed')));gives an error Code: Pascal [Select][+][-]Error: Illegal type conversion: "TGraphicsColor" to "TObject"but at the same time in 32 bit it works without problems. What is it?
Thanks Thaddy,,This is what the Russian guys reported as shown in the link earlier in the thread - Google Translated :-) ...QuoteGood day. It will be confronted with the fact that in the 64-bit version of lazarus the expression is of the type:Code: Pascal [Select][+][-]RxDBColorBox1.Items.AddObject('Красный',TObject(StringToColor('clRed')));gives an error Code: Pascal [Select][+][-]Error: Illegal type conversion: "TGraphicsColor" to "TObject"but at the same time in 32 bit it works without problems. What is it?Paul