Hi,

I have some TSpinEdit on a form. I would like to access the control 
through the Controls list of its parent. 

I would like to do something like this:

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'

If I use an other control, which is not derived from TWidgetControl this 
code works fine. Does anybody has any recomandations?

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

Reply via email to