SitesMasstec
Programmer
Hello colleagues!
In my form I have 2 fields to receive data from user:
When the user completed typing in the first field, the application test if the second field is blank. If the second field is blank, it copies the contents from the first field to the socond field.
So I put the following code in the LostFocus event of the first field:
It works fine, if the user press Enter after typing data in the first field. If the user press TAB (instead of Enter) the second field is not populated with the data from the first field.
When we press TAB to go out from a field, it has not to execute the LostFocus event?
Thank you,
SitesMasstec
In my form I have 2 fields to receive data from user:
When the user completed typing in the first field, the application test if the second field is blank. If the second field is blank, it copies the contents from the first field to the socond field.
So I put the following code in the LostFocus event of the first field:
Code:
Object: txtLocalizador Procedure: (event) LostFocus
IF SUBSTR(thisform.txtVoucher.Value,1,3)=SPACE(3)
thisform.txtVoucher.Value=thisform.txtLocalizador.Value
ENDIF
It works fine, if the user press Enter after typing data in the first field. If the user press TAB (instead of Enter) the second field is not populated with the data from the first field.
When we press TAB to go out from a field, it has not to execute the LostFocus event?
Thank you,
SitesMasstec