devya Posted July 15, 2021 Share Posted July 15, 2021 Dear all, We want to trap enter Key and check, from unimedit in mobile interface. We are using barcode to enter the product key, and want to trap the last code from the barcode scanner for doing processing. Just lIke in POS system use barcode to enter the transaction, without need to press any key. can help me to give a clue ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 15, 2021 Share Posted July 15, 2021 4 hours ago, devya said: We are using barcode to enter the product key, and want to trap the last code from the barcode scanner for doing processing. Just lIke in POS system use barcode to enter the transaction, without need to press any key. Hello, Sorry, could you please explain in more detail? Quote Link to comment Share on other sites More sharing options...
devya Posted July 16, 2021 Author Share Posted July 16, 2021 18 hours ago, Sherzod said: Hello, Sorry, could you please explain in more detail? ok, I am using Tunimedit in my form. and i m using Barcode scanner as my input device. When the barcode scanner do the scan, it will scan the barcode and pass the whole character to Tunimedit. The character result from the scanner is include the "#13" or Return Key, and i want to do process after the barcode scanner done the scanning, based on the Character #13 So , i need to check the character input inside the Tunimedit Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 16, 2021 Share Posted July 16, 2021 3 hours ago, devya said: The character result from the scanner is include the "#13" or Return Key, and i want to do process after the barcode scanner done the scanning, based on the Character #13 Hello, Maybe you wanted something like this? procedure TMainmForm.UnimEdit1Change(Sender: TObject); begin if Pos('#13', (Sender as TUnimEdit).Text)>0 then ShowMessage('Included') end; Quote Link to comment Share on other sites More sharing options...
irigsoft Posted July 16, 2021 Share Posted July 16, 2021 3 hours ago, devya said: So , i need to check the character input inside the Tunimedit Hello, on client side or on server side ? On Server side You can use TuniEdit.onKeyPress and standart VCL code Quote Link to comment Share on other sites More sharing options...
devya Posted July 17, 2021 Author Share Posted July 17, 2021 21 hours ago, irigsoft said: Hello, on client side or on server side ? On Server side You can use TuniEdit.onKeyPress and standart VCL code onclient side, But i m use unimedit (touch version), not sure your side can implement not ? Quote Link to comment Share on other sites More sharing options...
devya Posted July 17, 2021 Author Share Posted July 17, 2021 22 hours ago, Sherzod said: Hello, Maybe you wanted something like this? procedure TMainmForm.UnimEdit1Change(Sender: TObject); begin if Pos('#13', (Sender as TUnimEdit).Text)>0 then ShowMessage('Included') end; HI @Sherzod, thanks i will test it. Looks like what i want , ya never think of that, delphi way. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 17, 2021 Share Posted July 17, 2021 Hi, Ok. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.