In the Valid event of a textbox i put code below :
The LASTKEY() = 13 is try avoid the form popup if user is in the textbox and then user use the mouse click on other control.
I press "ENTER" key in the login form. Then i lunch the parent form from menu by using mouse.
After i lunch this parent form from menu. I click on the textbox. And then i click on other control. The problem is after i perform action above the lastkey() alway return 13. Except i type some thing in the textbox then the lastkey in the value of the chracter i type in the textbox. Can anyone help me ?
Code:
IF EOF("t_ireqd") AND EMPTY(t_ireqd.procod) AND;
LASTKEY() = 13
SELECT t_ireqd
APPEND BLANK
oapp.doform("bhpurinb",thisform.DataSessionId)
ENDIF
The LASTKEY() = 13 is try avoid the form popup if user is in the textbox and then user use the mouse click on other control.
I press "ENTER" key in the login form. Then i lunch the parent form from menu by using mouse.
After i lunch this parent form from menu. I click on the textbox. And then i click on other control. The problem is after i perform action above the lastkey() alway return 13. Except i type some thing in the textbox then the lastkey in the value of the chracter i type in the textbox. Can anyone help me ?