Filter with multiple file conditions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misi01
    Old Hand
    • Jun 2005
    • 210

    Filter with multiple file conditions

    Tried searching, but couldn't find what I was looking for. This is obviously an end-user error, but I can't figure out what I'm doing wrong.

    Doing a folder compare, and only want to see files that start with d7941* or paco*.
    Click on the left filter icon (without red diagonal) and enter d7941*.*;paco*.* in the include files control and click OK.
    With the red diagonal icon not selected, I don't see ANY files.
    With it enabled, I see all (?) the files (for example, MODULDRV is shown as one of the files).

    What am I doing wrong ?
  • RodolfoGiovanninetti
    Veteran
    • Oct 2007
    • 336

    #2
    When You click on the left filter icon, You must enter patterns of different lines.
    d7941*.*
    paco*.*

    Regards

    Rodolfo Giovanninetti

    Comment

    • misi01
      Old Hand
      • Jun 2005
      • 210

      #3
      Thanks Rodolfo - that did the trick.

      Having said that, the online help was confusing to say the least. Under file masks it says

      Example: -*.dcu;-*.ddp would exclude files with extensions dcu, or ddp.
      so my attempts seemed logical to me

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16000

        #4
        Hello,

        The Filters toolbar in the main view will use ; separators. The Session Settings, Filters tab uses new lines for each filter. Editing either area will update the other with the correct syntax.
        Aaron P Scooter Software

        Comment

        • misi01
          Old Hand
          • Jun 2005
          • 210

          #5
          Thanks Aaron. Form a user point of view, that doesn't make much sense (my opinion).

          If I enter *.cbl and *.docx on 2 lines using the filter toolbar, when I press OK, to return, it gets "translated" to *.doc*;*.bak in the filter control (if that's the right expression) and the 2 file variations are shown.
          However, if I enter *.doc*;*.bak on ONE line using the filter toolbar, it gets "translated" to *.doc*[;]*.bak (note the brackets) and my filter shows no files.

          I now understand that multiple lines is how I HAVE to specify the syntax, and I'm sure you guys designed it to work this way (deliberately), but I'm not sure I can see the logic there.

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 16000

            #6
            Hello,

            To clarify: the Filter Toolbar is the item in the main interface that is a single line high. The Name Filters Tab in the Session Settings pop-up dialog contains text boxes which allow multiple lines of entry.

            Entering *.doc*;*.bak on the toolbar should translate to the Name Filters tab as:
            *.doc*
            *.bak

            If you are seeing different behavior, please send in your BCSupport.zip from the Help menu -> Support; Export, to [email protected] along with a link back to this forum thread for our reference. Including a saved session, or a copy paste of your inserted text in the body of the email would help with our testing to try and reproduce the issue.
            Aaron P Scooter Software

            Comment

            • misi01
              Old Hand
              • Jun 2005
              • 210

              #7
              It's been a while, but things have calmed down now. Have sent the zip file to you (just retested with the latest updates to confirm the behavior)

              Comment

              • misi01
                Old Hand
                • Jun 2005
                • 210

                #8
                I received a reply from Aaron offline, and to quote him
                ; is a valid filename character, although an uncommon one. When working with our Session Settings dialog, the list allows DOS masking but also the literal ;.
                So entering ; here is asking for that character specifically in the file name you are trying to find
                Döööh, of course it 's a valid character (and thank you for pointing that out Aaron).

                As always, when you have the reason for why something acts "strangely", then that "strangeness" is perfectly valid and thought out.

                Thanks again.

                Comment

                • Aaron
                  Team Scooter
                  • Oct 2007
                  • 16000

                  #9
                  True, the quick summary is that the Session Settings filter syntax is a little simplified and will convert to the Filter toolbar/Scripting syntax (or vice versa) as needed. [;] in the filter toolbar will match the ; character, otherwise ; is the delimiter here. The Session Settings dialog uses new lines to separate items, so ; can be used literally without [].
                  Aaron P Scooter Software

                  Comment

                  Working...