Jump to content
Sign in to follow this  
Skrim

StringGrid OnGetEditText error

Recommended Posts

D12

 

When I doubleclick in Event OnGetEditText to make an event handler in a stringgrid I get this error.

 

"Property and method MyGridOnGetEditText are not compatible."

 

The event is empty. It had some code earlier, but that is deleted together with its declaration.

 

From Delphi Help file
"You are assigning a method to an event property even though they have incompatible parameter lists. Parameter lists are incompatible if the number of types of parameters are not identical. For a list of compatible methods in this form, see the dropdown list on the Object Inspector Events page."


Any ideas how to solve this?

 

Share this post


Link to post

Have you compared the code for the event handler method with the declaration in the StringGrid class that has the event property?

 

It sounds really weird that the event handler lost it's code, though.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×