Filemaker Pro 9 (122) Flashcards
1
Q
This set entered on 8-3-14
8.3.14.3
- What does the SUBSTITUTE Function do?
A
It performs a Find and Replace WITHIN a text value.
2
Q
- How would you write a function to replace all the NO with YES on a field?
A
Substitute ( Buy ; “No” ; “Yes” ). Buy, in this case, is a FIELD that tells you whether you should buy
something or not.
3
Q
- A few FileMaker functions support a special BRACKETED SYNTAX and Substitute is one of them. This means that if you want to:
A
Perform several REPLACEMENTS on a piece of text, you can do it with one SUBSTITUTE FUNCTION.
4
Q
- For example, how do you remove all the vowels from a field?
A
Substitute ( My Field ; [“a” ; “ “] ; [“e” ; “ “] ; [“i” ; “ “] ; [“i” ; “ “] ; [“o” ; “ “] ; [“u” ; “ “]
5
Q
- What does the Filter Function do?
A
It can remove anything that you DON’T specify.
6
Q
- How would you remove any non-numeric characters from a credit card number?
A
Filter ( Credit Card Number ; “0123456789” )
7
Q
- What will this function return: Filter ( Task ; “to do” ) ?
A
It will return all the t’s, the o’s, and the d’s. It will not know to return “to do” only.