Results 1 to 1 of 1
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Filtering Files (Word2000 et al.)

    I decided to write a general-purpose file filter this morning.
    No pretense at execution efficiency here. I wanted to have a simple programmer interface, so the structure was the foundation.
    The programmer will draw data from a GUI form, and so can specify (in most cases) a set of ranges of characteristics.
    I use File System Object and Regular Expressions.
    If you want to run the code you'll probably need to d/l a copy of my UW.dot from chrisgreaves.com, but you can read the code without that library.

    <pre>Type fltFilter
    ' This structure contains space for every conceivable filter for Bulker
    dtAccessedHigh() As Date ' an array of integer dates
    dtAccessLow() As Date ' an array of integer dates
    dtCreatedHigh() As Date ' an array of integer dates
    dtCreatedLow() As Date ' an array of integer dates
    dtModifiedHigh() As Date ' an array of integer dates
    dtModifiedLow() As Date ' an array of integer dates
    lngAttributesON As Long ' an 8-bit mask
    lngAttributesOFF As Long ' an 8-bit mask
    lngLengthHigh() As Long ' an array of long lengths
    lngLengthLow() As Long ' an array of long lengths
    strContent() As String ' an array of C/X strings
    strNameExtent() As String ' an array of regular expression patterns
    End Type</pre>

    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •