• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 855
  • Last Modified:

How do I exclude or omit a prefix letter/number/character in the output field (FileMaker Calculation)

How do I specify a calculation function to omit/exclude a leading letter/number/character in the output filed of a FileMaker Pro database?

Here is what I exactly mean:
Lets say I have a barcode that translates into A123ABC4567, when the barcode is scanned into an input field called "Serial Number" I want it to be accepted as 123ABC4567, removing the prefix letter "A" automatically in the output field when printing the label. Any idea how? I just need the correct calculation function or formula. FileMaker Pro 10
0
kachal99
Asked:
kachal99
  • 4
  • 3
1 Solution
 
hawardenCommented:
In FMP9 there is a function Right ( text ; numberOfCharacters ) that should be able to do what you want. Put the unmodified barcode in text and specify how many characters you want to keep in numberOfCharacters.

Hope this helps.
0
 
kachal99Author Commented:
Thanks for your quick response.
The problem is that the number of characters are not the same. Some of them are 13 characters long and some are 12 characters long. I just want to be able to remove a specified character in the prefix.
0
 
kachal99Author Commented:
I'm not sure if "FilterValues ( text ; filterValues )" will do any good in this scenario???
0
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
hawardenCommented:
Ah I see, try using Middle ( text ; start ; numberOfCharacters ) then. You still put the raw value in text, but put start as the second position, and specify numberOfCharacters as a larger number.....
0
 
kachal99Author Commented:
Can you please provide an example for removing the letter "A" in A123B45678912 (13 characters)?
0
 
hawardenCommented:
Middle(ScannedBarCode;2;20)

where the field ScannedBarCode contains A123B45678912 for this record.

20 characters should give you more than enough flexibility and it doesn't throw an error if it matches less characters. 2 is the position at which you start the substring.
0
 
kachal99Author Commented:
Got it Thanks!!!!!!!!!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now