Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Group:

I am using FMP 5.0 Unlimited to hadle my database. I am scanning barcodes from client stations throughout the office. These barcodes Contain exactly 7 characters and all start with "F". I need to have FMP validate the data in the field to make sure it starts with the letter "F". Any thoughts on this? I have been looking at validation for text but have come up with nothing useful.

Thanks in advance.

Lakota

FileMaker Version: 5

Platform: Windows 2000

How about

Exact ( Lower ( Left (Barcode) ), "f" )

I recently made a barcode inventory scanning database. I set up the scanner so it inputs into a global field, then pauses (for further data entry). When the user hit Enter, the script continued, dumping the global into the real field, and returning the user to the global for the next input.

I set this script up to catch scanning errors. After the global was filled with the scan info, I had something like (modified for you):

If (Length(g_Input) <> 7 or Left(g_Input) <> "F",

Show Message ("Scan was incorrect, try again")

SetField (g_Input, "")

Go To Field (g_Input)

Exit Script

Else

(do all the stuff required by a successful scan)

The awkward aspect is that this requires the user to hit the Enter button (NOT the return key) after every entry. I could not get the scanner to send a preamble (Ctrl-1) then a postamble (Ctrl-2), or I could have broken this into two scripts and avoided the pause and the enter button.

Steve Brown

  • 1 month later...
  • Author

Steve:

What model scanner are you using? Would a carriage return work here? I had to replace scanners for our inventory process and we have made the entire application "hasnd-off" for the users. They scan and run. All other data is related and populates either from system variables or from the database.

Just a thought.

Lakota

Try this

Loop

[scan]

Exit Loop If (Length(g_Input) = 7 and Left(g_Input) = "F",

Show Message ("Scan was incorrect, try again")

SetField (g_Input, "")

Go To Field (g_Input)

Pause/Resume Script

end loop

else

etc.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.