Hamar Gábor wrote:
> 2005-07-20, sze keltezéssel 12.40-kor Wayne Roser ezt írta:
>> Hamar Gabor on Wednesday, 20 July 2005 at 0:00 +0000 wrote:
>>> if panel.Controls[j] is TSpinEdit
>>>  then (panel.Controls[j] as TSpinEdit).Value:=0;
>>>
>>> This code doesn't colmpiles, the error message is:
>>> Incompatible types: 'TSpinEdit' and 'TControl'
>>
>> What about
>>
>> if panel.Controls[j] is TSpinEdit
>>   then TSpinEdit(panel.Controls[j]).Value:=0;
> 
> I got the same compiler error message for this. I think this code does
> exactly the same as my code.

If the error you get is for the first line of your code, and not the 
second, then your code and Wayne's code are indeed the same.

Are you mixing VCL and CLX controls? If so, then that could explain the 
problem. Those two component libraries are completely separate. If you 
have any units in your project that start with Q, then you're probably 
using CLX. To my knowledge, the TSpinEdit sample control is not provided 
for CLX, but I suspect it wouldn't be too hard to convert.

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to