Newbies shirokuma Posted July 13, 2004 Newbies Posted July 13, 2004 I do development with both Japanese and English versions of Filemaker. I have noticed that in the English version the delimiter for a "word" can be any non-alphanumeric character. This is causing a problem because some time my data contains hyphens and other punctuation. This means that if the data in some_fields is "s-1-5-21 some more data) the text function leftwords(some_field, 1, 1) will return "s" instead of "s-1-5-21". In Japanese, the function will return the proper string but not in English. Is there a way around this? Regards, shirokuma
QuinTech Posted July 13, 2004 Posted July 13, 2004 Hi, Shirokuma, and welcome to FM Forums! If you update the FM version you're using, we could help you more easily. Namely, if you're using version 7, you could use LeftWords ( Filter ( some_field , "abcdefghijklmnopqrstuvwxyz1234567890" ) , 1 , 1 ) to return only the first word of the string after stripping it of non-alphanumeric characters. Does this help? Jerry
Lee Smith Posted July 13, 2004 Posted July 13, 2004 Hi Shirokuma, For versions before 7, you could use something like this: LeftWords(Substitute(Substitute(Text Field, "-", ""), ".", ""), 1) Just add another Substitute for any other character you want to remove. HTH Lee
Newbies JCho Posted July 15, 2004 Newbies Posted July 15, 2004 I had a question on LeftWord() or another method. If(Value1 = Value2, value2, "$"& Value1 & "-"& "$"& Value2) the problem is I can't get the comma to show thousands in Value1 and in Value2. Can any help me to find out how to insert a comma in a caluation in two different values
-Queue- Posted July 16, 2004 Posted July 16, 2004 Case( Value1 = Value2, Value2, "$" & Case( Length(Value1) > 3, Left( Value1, Length(Value1) - 3 ) & "," ) & Right( Value1, 3 ) & "-" & "$" & Case( Length(Value2) > 3, Left( Value2, Length(Value2) - 3 ) & "," ) & Right( Value2, 3 ) )
Recommended Posts
This topic is 7505 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now