Jump to content
Sign in to follow this  
dalton5

Button text focus

Recommended Posts

Hello,

I am not english speaker so sorry for my written english.

I have a textbox on my layout. I would like to fill the text box with a bar code scanner. The bar code scanner return the value of the barcode + enter keystroke. I would like to be able to scan the code with the scanner. Then when the enter key is detected, the textbox value is cleared.

The text is linked to a field text.

I worked with the button trigger keyStroke. I can detect the enter key. Then I want to delete the value to be able to scan a new code.

And it doesn't work.

I can remove the text. But I can't remove the new line created by the enter keystroke.

Could you advice me?

Thank you.

Share this post


Link to post
Share on other sites

You should be able to use a script trigger which just sets the field back to empty. Something like

Set Field [ gScanField; "" ]

  • Like 1

Share this post


Link to post
Share on other sites

You can also use the Go To Field script as well to reselect the field,

The problem you might find is your scanner is prefixed with the enter key you need to change it to tab I use a scanfob 2002

You can change it on all scanners

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.