The type is declared like so...
Type
TProc = Procedure(Const S: String) of Object;
The class declaration looks like this
TMyClass = ....
Private
FVar : TProc;
...
Property AVar : TProc Write FVar;
Then there is this procedure declaration...
Procedure AProc(Const S :String);
begin
MessageBox(S,mtError,[mbOk],0);
end;
The following assignment snags the compiler ...
MyClass.AVar := AProc('String...');
saying I am trying to assign the wrong type. Any ideas.
-- Rich
](./images/smilies/icon_wall.gif)