Type TNotifyEvent = procedure(Sender : TObject) Of Object
Is there anyway in Borland Pascal for Dos/Turbo Pascal to emulate the
Type TNotifyEvent = procedure(Sender : TObject) Of Object;
or to assign an Object Method to a procedure variable
ie:
Type TempObject = Object
Procedure MyProc;
End;
Var Notify : Procedure;
TempObj : TempObject;
Begin
Notify := TempObj.MyProc;
End.
I tried the above code, but it just gives me a compiler error 143: Invalid
Procedure or Function reference...
Even trying to do a
@Notify := Ptr(Seg(TempObj.MyProc), Ofs(TempObj.MyProc));
Doesn't work, it still comes up with the same compiler error....
Any help on this would be much appreciated....
Cheers
Daniel
netl...@omen.com.au