![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
#5
|
||||
|
||||
|
Yo particularmente acostumbro usar el operador is, pero eso no viene al tema.
He probado esto, y funciona sin problemas: Código:
procedure TForm1.Button2Click(Sender: TObject);
var
Ol: TObjectList;
begin
Ol := TObjectList.Create;
Try
Ol.Add(Button1);
if Ol.Items[0].InheritsFrom(TControl) Then
ShowMessage('Ok!')
else
ShowMessage(Ol.Items[0].ClassName + ' no hereda de TControl');
finally
Ol.Free;
end;
end;
Me parece muy extraño que algo tan básico falle
__________________
delphi.com.ar Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla.
|
|
|
|