July 24, 200619 yr The GetAsNumber function returns the value "?" when passed the parameter "?". This behaviour confused me at first, just thought I'd try to get some feedback before reporting it to FileMaker as a bug. The question mark symbol is not a valid number and when passed as part of a string it is correctly stripped out as non-numeric, i.e. "1?1" -> "11" But it is not removed when it is on its own, i.e. "?" -> "?" I'm inclined to believe this is not a bug, it seems to go against the logic of the function however a single question mark usually indicates an error in a calculation, I think the function is merely cascading this error e.g. if the following calc produces a "?" "1/0" then you would expect the following to produce a "?" "GetAsNumber(1/0)" Just thought I'd check this function is behaving correctly, and also let people know about this behaviour.
Create an account or sign in to comment