Søren Dyhr Posted April 20, 2024 Posted April 20, 2024 Or is it just me?? https://tinyurl.com/bdcmsc9w It's the examples made in 3. and 4. --sd
comment Posted April 20, 2024 Posted April 20, 2024 (edited) Why don't you paste these expressions in a calculation window and see if they produce a "syntactical error"? Edited April 20, 2024 by comment
Søren Dyhr Posted April 20, 2024 Author Posted April 20, 2024 49 minutes ago, comment said: Why don't you paste these expressions in a calculation window and see if they produce a "syntactical error"? I did and I get this - what is the meaning, what are they trying to convey using - commas when the obvious would be semicolon - with my localisation with what should be commas etc.
comment Posted April 20, 2024 Posted April 20, 2024 (edited) I don't understand what you're showing us. I get no error. And all the commas were automatically converted to semicolons. Example4.fmp12 And in Data Viewer (with the commas): (That doesn't mean it's a good example.) Edited April 20, 2024 by comment
LaRetta Posted April 20, 2024 Posted April 20, 2024 Hi Søren! In your example, two things stand out: 1. Are you saying you put semi-colons in all three places but it changes those within the If() to commas? 2. Aren't you missing a closing parenthesis at the end of your calculation? Michael's example works for me as well.
Søren Dyhr Posted April 20, 2024 Author Posted April 20, 2024 8 minutes ago, LaRetta said: 2. Aren't you missing a closing parenthesis at the end of your calculation? I am, but in my neck of the woods does this make sense: GetSummary ( Untitled::Total Sales ; If(Untitled::number of Countries > 1;Untitled::Country;Untitled::SalesZone) ) It was not the actual page, where i saw the error - I referred to, it's in this example consequently either commas or semicolons - and it makes much more sense now. --sd
comment Posted April 20, 2024 Posted April 20, 2024 (edited) It may be worth pointing out that Filemaker does not expressly mandate the use of a semicolon as the separator character between functions parameters. Although on this page you will find statements like: Quote Use a semicolon between parameters when a function requires more than one parameter. and: Quote An ellipsis (...) signifies that you can add more parameters, each separated by a semicolon the operative sentence seems to be: Quote When a function requires more than one parameter, separate individual parameters with a list separator, such as a semicolon. There is no explanation regarding what other characters qualify as a "list separator" - but in the glossary you will find: Quote function list separator The punctuation character ; (a semicolon) that separates parameters in a function definition. If you type a comma (,), FileMaker Pro changes it to a semicolon after you close the Specify Calculation dialog box. Note also that this is not locale-dependent. Edited April 20, 2024 by comment
Søren Dyhr Posted April 21, 2024 Author Posted April 21, 2024 19 hours ago, comment said: If you type a comma (,), FileMaker Pro changes it to a semicolon after you close the Specify Calculation dialog box. Nice thing to know! --sd
Recommended Posts
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