Board index » delphi » Creating dynamic objects
OgO
![]() Delphi Developer |
Sun, 09 May 2004 06:30:49 GMT
Creating dynamic objects
Hi everyone,
Ok, I've got some objects being created at runtime - a handful I tried: newItem.OnClick:=dothis(i); where do this is a procedure declared as: procedure TForm1.dothis(i:integer); but I get the error: Incompatible types: 'TNotifyEvent' and 'procedure, untyped (how, btw, do you copy an error message like that from the IDE? I think I'm close - I just need to get the syntax of that line Regards OgO My Freeware: http://qjc.cjb.net/freeware.html |