iOS Question How to set focus to a TextField

rbtcotton

Member
Licensed User
Longtime User
I am unable to find a method or process to set focus to a Textfield. I have tried TextField1.RequestFocus without success.
My app is using a textfield to record barcodes from a bluetooth scanner. The app should scan the barcode, process the data, and return focus to the textfield waiting for the next scan. I developed a similar app in B4A using very similar methods.

I am sure that it's something simple or something I just missed.

Thanks in advance...
 

rbtcotton

Member
Licensed User
Longtime User
I found the problem. The scanner was passing a chr(13). I turn this off and it works. The app now loops as expected and the focus is in the textfield after a scan.

Thanks for the quick response.
 
Upvote 0
Top