![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I used the leftword command to separate the first word and it works fine, except when the first word contains a "#" character, i.e., "12345678#AGM". In this case it thinks the first word is "12345678" and not "12345678#AGM". |
#3
| |||
| |||
|
|
Bubba <bubba (AT) mail (DOT) net> wrote: I used the leftword command to separate the first word and it works fine, except when the first word contains a "#" character, i.e., "12345678#AGM". In this case it thinks the first word is "12345678" and not "12345678#AGM". Most punctuation marks act as word separators in Filemaker. (Exceptions that I know of are the apostrophe (single quote) and the period.) So Leftwords(Substitute(text; "#"; ""); 1) should do the trick. |
#4
| |||
| |||
|
|
Bubba <bubba (AT) mail (DOT) net> wrote: I have a text field wiht mutiple words in it. The text field might be "12345678" or "123456789" or "1234567890" followed by a varying number of spaces followed by the - character followed by 1 or more words. I used the leftword command to separate the first word and it works fine, except when the first word contains a "#" character, i.e., "12345678#AGM". In this case it thinks the first word is "12345678" and not "12345678#AGM". Most punctuation marks act as word separators in Filemaker. (Exceptions that I know of are the apostrophe (single quote) and the period.) So Leftwords(Substitute(text; "#"; ""); 1) should do the trick. |
)
#5
| |||
| |||
|
|
I have a text field wiht mutiple words in it. The text field might be "12345678" or "123456789" or "1234567890" followed by a varying number of spaces followed by the - character followed by 1 or more words. I used the leftword command to separate the first word and it works fine, except when the first word contains a "#" character, i.e., "12345678#AGM". In this case it thinks the first word is "12345678" and not "12345678#AGM". Most punctuation marks act as word separators in Filemaker. (Exceptions that I know of are the apostrophe (single quote) and the period.) So Leftwords(Substitute(text; "#"; ""); 1) should do the trick. Since the wanted text is always follwed by a space (it doesn't matter that the number of them varies), then another way would be to simply take all the characters up to, but excluding, the first space. i.e. Left (TextField; Position (TextField; " "; 1; 1) - 1) I don't know if the Left / Position combination calculates any faster than LeftWords / Substitute combination. Helpful Harry ) |
#6
| |||
| |||
|
|
I have a text field wiht mutiple words in it. The text field might be "12345678" or "123456789" or "1234567890" followed by a varying number of spaces followed by the - character followed by 1 or more words. I used the leftword command to separate the first word and it works fine, except when the first word contains a "#" character, i.e., "12345678#AGM". In this case it thinks the first word is "12345678" and not "12345678#AGM". Most punctuation marks act as word separators in Filemaker. (Exceptions that I know of are the apostrophe (single quote) and the period.) So Leftwords(Substitute(text; "#"; ""); 1) should do the trick. Since the wanted text is always follwed by a space (it doesn't matter that the number of them varies), then another way would be to simply take all the characters up to, but excluding, the first space. i.e. Left (TextField; Position (TextField; " "; 1; 1) - 1) I don't know if the Left / Position combination calculates any faster than LeftWords / Substitute combination. Helpful Harry )
|
![]() |
| Thread Tools | |
| Display Modes | |
| |