Adding event on Property crash program.

From: Bob Bedford (bob_at_bedford.com)
Date: 10/31/03


Date: Fri, 31 Oct 2003 09:08:18 +0100

I've a StringGrid on a form on wich I add at runtime some events:

  TempGrid.OnMouseDown := TempGridMouseDown;
  TempGrid.OnDragDrop := TempGridDragDrop;
  TempGrid.OnDragOver := TempGridDragOver;
  TempGrid.OnEndDrag := TempGridEndDrag;

As they are no reasons to do so at runtime, I've tried to do it in the
object property.

When I doubleclick say in the MouseDown event, the object property point
directly in the
TempGridMouseDown procedure, so they point at the right place.

Now, if I run the program with the event procedure in the object properties,
I've this error:
...Exception EReadError with the message 'Property value incorrect'.....

What's wrong ?