RTTI on classes ok. On interfaces ok too?
Posted on 2000-04-05
I'm getting a compiler error.
Operator not applicable to this operand type
I just want to see if the Sender is a particular class. RTTI. I've done similar things like this before in other projects, but this will not compile:
procedure TfrmMain.editorStartDrag(Sender: TObject;
var DragObject: TDragObject);
if (Sender is TSNode) then
doit( Sender as TSNode );
Why? TSNode is defined. But its an interface...
TSNode = interface(IDispatch)