Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4931 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi there,

I am trying to implement using a barcode scanner with FMP.

The usb scanner sends the return keycode after each input (as do most scanners).

After each input, I want to move to the next field.

My script is quite simple:

if code(get(triggerkeycode)) = 10 or code(get(triggerkeycode)) = 13 (both return and enter)

Go To Field(Field 2)

end if

Which has been attached as a script trigger on OnObjectKeystroke.

This works fine, however, after moving to the next field, it still sends the return code and the new field gets a new line.

Is there anyway I could send null or not send anything at all after it goes to the next field?

Thanks heaps!

Posted

This works fine, however, after moving to the next field, it still sends the return code and the new field gets a new line.

Add this step before End If:

Exit Script [Result:0]

See also:

http://www.filemaker.com/11help/html/edit_layout.10.34.html#1029649

This topic is 4931 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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