Re: bug in the PatternCount function?



The backslash is acting as an escape character for the quote. So if you had "\"", you would actually end up with a quote as a result (in your case, as the patterncount search character). If what you want is the slash as your patterncount search character, then try it as "\\", which escapes the slash with a slash, leaving a slash result.

Michael Myett wrote:
Hello All,

Using FileMaker 9.0v3 Advanced on Win XP SP2 Media Center Edition

Using a simple PatternCount formula as follows,

PatternCount(somefield;"\")

I receive the following error when trying to close out of the calculation dialog, "This text constant does not end with a quotation mark."

All other text operators and special characters work fine in the same formula. However, if I replace the hard coding with a global field which holds the backslash the formula works perfectly. It is just the backslash, I have tested all the other characters.

I guess this could be a problem with my system or file corruption. So I was hoping to find out if anyone else has had this problem, before I report it to FileMaker as a bug.

Thanks,
M Myett


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Member, FileMaker Business Alliance
.



Relevant Pages

  • Re: New Line Constant Error!
    ... > make a special character that you can't type into your program. ... > tries to combine the backslash with the following character to create ... which the compiler reads as a special sequence that folds down into ... because the sequence backslash-en is ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Eigenartiges Verhalten von "String[] java.lang.String.split(String regex)" - Falscher Split
    ... "It is an error to use a backslash prior to any alphabetic character ... Alle anderen Backslashes sind nicht erlaubt und ... musst du das mit ...
    (de.comp.lang.java)
  • Re: New Line Constant Error!
    ... it is an "escape" that combines with the character after it to ... So, any time you type a string and put a backslash \ in it, the ... which the compiler reads as a special sequence that folds down into ... special-character processing on this one. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: gfortran diagnostics and so on
    ... Well, in f0003, backslash is part of the standard Fortran character set. ... Because the backslash is part of the standard Fortran character set, the default behavior should be the printable character, **NOT** some kind of magic introductory character that transforms the interpretation of following character. ... The one I like best is to use one of the popular extensions to designate a particular literal string according to the C language. ...
    (comp.lang.fortran)
  • Re: bash-script -- filename conversion of Whitespace, "", ""
    ... bash 2.05b awk GNU awk 3.03 ... than one space character in a row, the result will only have one backslash-space combo. ... The backslash is retained and passed on to the ... An apostrophe does not need any backslash in front of it to ...
    (comp.os.linux.misc)