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

  • Newbies

Hi !

I have a field that should look like this :

A-12345-K

C-98765-J

G-67676-F

I will only allow A-Z in first 2 character then 1-9 next 5 and at last A-Z

How would i easiest solve that ?

Best Regards.....

Hi, tsd! I think it depends on where the data is coming from, how it is being used, and when you need to validate the data. You could use 3 fields and string concatenation or look at the left, right, middle functions, and possibly the patterncount function. If you need CAPS only, you may also need the UPPER function. What is the context of how the data is entered and used?

--ST

  • Author
  • Newbies

Thx Steve.

I will have a look on the tip you gave me now. But another problem apperaed

for me. I have a field with 01, 02 03 .... but when it came to 10 the zero should dissapear. How could that If calculation look like ?

I am a very novice user of Filemaker.

Best Regards...

Hi, tsd! The 01..010 thing also depends on how those numbers are created... I am assuming they were not manually typed since you say "when it came to 10", so I am not sure of the best way to get what you want. If you want to make a calc field to show an equivalent value of another field but w/no leading zero for values of 10 or more up to 100... try

equivcalc=

If (serialnum >= 10 and Left(serialnum="0", Right(serialnum, 2), serialnum)

In English...

If serialnum is .gte. 10 and starts with a 0, then equivcalc = right 2 digits of serialnum, else equivcalc = serialnum

If you anticipate going over 100, then you'd have to change this to a switch/case statement to list several conditions, or use the length() function to count digits and just remove the front 0 if there is one.

Hope this helps some, though...

--ST

I guess my GreaterThan or EqualTo sign is not web-friendly, so I changed it to >= above. Use the actual GTE symbol in the calc though.

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.