3 Replies Latest reply on Oct 17, 2015 2:52 PM by G T

    Remove line from list that contains a partial match

    G T

      I am trying to solve an issue with named panels on top of a popover.

       

      I am using the Restore Tabs module modularfilemaker.org.

      http://www.modularfilemaker.org/module/restore-tabs/

       

      This module will save a list of all named objects on a layout with this calculation:

      Substitute (

      LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ) ) ;

      ["¶¶"; "¶"];

      ["¶>"; ""];

      [">¶"; ""];

      ["¶<"; ""];

      ["<¶"; ""];

      [">"; ""];

      ["<"; ""]

      )

       

      This poses a problem as it will cycle through all tabs or panels that may be on popovers when the list of objects is restored. I'd like all named objects on popovers to be eliminated from this process so popovers are never activated.

       

      My thought is to begin all named objects on popovers with "hidden_" and simply remove them from the list that results from the above calculation. This will prevent them from being selected when the list is restored.

       

      If this is indeed the best way to resolve this problem, how do I remove from the list any lines that begin with "hidden_" or have that pattern within the line?

       

      Greg