Re: BUG in FileMakerPro



Boubahha wrote:
v7 dev and v8 Pro

2 fields :

DATA_1 : Text
DATA_2 : Substitute ( " " &  DATA_1 & " "; " la "; " ")

BUG :

"la lampe la la" > DATA_1
" lampe la " > DATA_2 ???!! Why isn't it " lampe  " ??!

Is it a bug?

FileMaker is substituting all unique patterns of " la " from the original value. The space between the last two la's is unique to only one of those la's and is therefore ignored for the other la.


If you are sure there will never be more than two la's in a row, then you can use something that performs up to two substitutions:

	Substitute ( " " &  DATA_1 & " "; [" la "; " "]; [" la "; " "])

Or if you can't predict how many consecutive la's there might be, and since you have FM Developer 7, you can define a custom function that uses recursion to do what you want, a sample of which is at http://www.briandunning.com/cf/40


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Howard Schlossberg (818) 883-2846 FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance
.



Relevant Pages

  • Re: A vertical header?
    ... FM Pro Solutions Los Angeles, ... FileMaker 7 Certified Developer ... Associate Member, FileMaker Solutions Alliance ...
    (comp.databases.filemaker)
  • Re: why wont this small validation calc work?
    ... FM Pro Solutions Los Angeles, ... FileMaker 7 Certified Developer ... Associate Member, FileMaker Solutions Alliance ...
    (comp.databases.filemaker)
  • Re: Filemaker server 7 advanced
    ... FM Pro Solutions Los Angeles, ... FileMaker 7 Certified Developer ... Associate Member, FileMaker Solutions Alliance ...
    (comp.databases.filemaker)
  • Re: Trying to Solve Shell Game Between Part and Fields in Layout Mode
    ... Sug wrote: ... My other suggestion would be that you have a corrupt layout. ... FM Pro Solutions Los Angeles, ... Associate Member, FileMaker Solutions Alliance ...
    (comp.databases.filemaker)
  • Re: Texttodate, yyyymmdd -> mm/dd/yyyy
    ... Seems to me you'd do well with taking your 19750127 text field (I'll call it OrigDate) and using it to perform a replace for all records ... Adam Price wrote: ... FM Pro Solutions Los Angeles, ... Associate Member, FileMaker Solutions Alliance ...
    (comp.databases.filemaker)