Choose Case key
Case Keyrightarrow! //右箭头
//if this.position()=len(gettext()) + 1 then
IF This.Getcolumn()<>integer(This.object.datawindow.column.count) Then
keybd_event(9,0,0,0)
keybd_event(9,0,2,0)
//end if
end if
Case Keyleftarrow! //左箭头
IF This.Getcolumn()<>1 Then
if this.position()=1 then
keybd_event(16,0,0,0)
keybd_event(9,0,0,0)
keybd_event(16,0,2,0)
keybd_event(9,0,2,0)
end if
end if