Code: Select all
on checkOptionKey
if the eventOptionKey is down then
select last button
put the dgNumberOfLines of group "Datagrid" into theLineNo
put the dgDataOfLine[theLineNo] of group "Datagrid" into theDataA
put the id of selectedObject into theDataA["ID"]
dispatch "AddData" to group "Datagrid" with theDataA, theLineNo +1
end if
end checkOptionKey