DataGrid script
Code: Select all
on keyUp pKey
if pKey is "A" then
# do something, for example
put the dgHilitedLines of group "MyGrid" into tLineNo
put the dgDataOfLine[the dgHilitedLines of grp "MyGrid"] of grp "MyCard" into tArray
put "SomeValue" into tArray["Date"
dispatch "ResetList" to grp "MyGrid"
set the dgHilitedLines of grp "MyGrid" to tLineNo
end if
pass keyUp
end keyUp
My thought is to have the keyUp handler somehow be aware that a field edit is in progress however I cannot find a way to detect this.
Any tips would be greatly appreciated.
I'm using LC9.5.1 on Mac.
Cheers
Allan