table control 回车

如何在TC(TableControl)里面获取回车和双击行


 

在TC所在Screen的GUI STATUS里面给回车和F2设置Fcode

例程:

<!--StartFragment -->

MODULE user_command_0100 INPUT.
DATA: l_linno TYPE i .
save_ok = ok_code .
CLEAR ok_code.
CASE save_ok.
WHEN 'VIEW'.
tc01-invisible = 'X'. "使TC不可见
WHEN 'ENTE'.
GET CURSOR LINE l_linno . "回车时
WHEN 'SELE'.
GET CURSOR LINE l_linno . "双击时
WHEN OTHERS.
ENDCASE.
ENDMODULE.
TC获取和设置行:

 

你可能感兴趣的:(table)