Topic: Script error

Hi All,
I get "Incompatible types 'TObject', string at...' error for the line


Form1_TableGrid1_OnCellClick('',0,0);

From the script below:

procedure frmLongTerm_Button1_OnAfterClick (Sender: string);
begin
Form1.TableGrid1.dbItemID:= Last_Insert_id;
Form1_TableGrid1_OnCellClick('',0,0);
BrowseLongTermTasks;
form1.TableGrid1.dbupdate;
end;

Any correction or alternative?

Adam
God... please help me become the person my dog thinks I am.

Re: Script error

Form1_TableGrid1_OnCellClick(Form1.TableGrid1,0,0);
Визуальное программирование: блог и телеграм-канал.

Re: Script error

Hi k245,
Thank you very much for your kind help....................

Adam
God... please help me become the person my dog thinks I am.