1 (edited by kweatherhead 2021-02-12 19:58:13)

Topic: Need Help - Eagle Eye

Greetings,

When I run the script in the attach image I get the error displayed

HOWEVER

if I completely comment out lines 3 thru 8 I do not get the error and the process works as desired.

Can someone explain why this error is occurring, what am I missing.
Running MVD v6.5

Regards,
Keith

Post's attachments

Attachment icon 2021-02-12 13_49_34-MVD_Error.png 558.79 kb, 116 downloads since 2021-02-12 

Re: Need Help - Eagle Eye

Hi Keith,
From your screenshot, you have:
procedure frmlstclients_tablegrid1_oncellclick (Sender: TObject);
But these are the parameters for a tablegrid_onclick event rather than a tablegrid_oncellclick event.
The correct procedure parameters for the oncellclick event should be
procedure frmlstclients_tablegrid1_oncellclick (Sender: TObject; ACol, ARow: Integer);
Derek.

Re: Need Help - Eagle Eye

derek wrote:

Hi Keith,
From your screenshot, you have:
procedure frmlstclients_tablegrid1_oncellclick (Sender: TObject);
But these are the parameters for a tablegrid_onclick event rather than a tablegrid_oncellclick event.
The correct procedure parameters for the oncellclick event should be
procedure frmlstclients_tablegrid1_oncellclick (Sender: TObject; ACol, ARow: Integer);
Derek.


OK, I changed the event code and the place in the Events Tab on the left without understanding the difference in the call setup.
Glad you spotted it cause I was starring at it for an hour and never had a clue.  I guess I had best do the double-click to the
right of the event and let the system set things up for me until I truly understand MVD/Pascal Script.

Thanx for spotting my error !!

Keith