Don't consider it a correct fix, but if I get rid of all the tab on the layout but the scratch pad it works.
I dont know if my response will fix your problem. But i think you'll must use a script like this :
Set Variable [$Var1; Test::FieldScanResult]
Enter Find Mode
Set field [ScratchPadNumber; $Var1]
Go to field [ScratchPadNumber]
and use this script on your "OnObjectExit" action.
kvalley, thats how I started. Nothing seemed to work. Removing all but the one Tab Stop in the layout is working. Not a huge issue for this application since its a barcode reader and a touchscreen.
I thought that when clearing that field it would restart the script, it did, so I added an If..Then to kill it if it was already run.
Excuse me but i misunderstood, so can you explain me step by step how you use your app and when you got a problem (excuse me i'm french so my english is bad...)
You don't have to go to a field just to clear it or otherwise change its value.
Set Field [YourTable::YourScanField ; ""]
will clear it.