Link to home
Start Free TrialLog in
Avatar of kachal99
kachal99

asked on

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
Avatar of hawarden
hawarden
Flag of United States of America image

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.
Avatar of kachal99
kachal99

ASKER

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.
I'm not sure if "FilterValues ( text ; filterValues )" will do any good in this scenario???
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.....
Can you please provide an example for removing the letter "A" in A123B45678912 (13 characters)?
ASKER CERTIFIED SOLUTION
Avatar of hawarden
hawarden
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Got it Thanks!!!!!!!!!!!