procedure Tinput.StringGrid1SelectCell(Sender: TObject; ACol,
  ARow: Integer; var CanSelect: Boolean);
begin
 StringGrid1KeyPress(StringGrid1,#13); //也用过StringGrid1KeyPress(Sender,#13); 
end;
  老是编译通不过,提示Types of actual and formal var parameters must be identical
  请问该如何改进啊。
  我是想在StringGrid1KeyPress事件中输入原料数量回车后,自动去求金额=数量*单价(这个功能已经实现),同时想要在StringGrid1SelectCell(或者在定位其他单元格)的时候,也要取得和StringGrid1KeyPress同样的效果。