Results 1 to 3 of 3

Thread: I need a demorgan function

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    I need a demorgan function

    I need a demorgan function

    I need a function which can convert this expression

    F1 and (F2 or F3)
    to
    (F1 and F2) or (F1 and F3)

    private function Demorgan (Expr as string) as string
    ...
    end function

    plz help

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: I need a demorgan function

    What is a "demorgan function"?

    I ask, because when I Googled this it came back with no matches at all.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    81

    Re: I need a demorgan function

    F1: condition1, F2: ect...
    I have a condition string: "F1 and (F2 or F3)"

    to set ADODB.Recordset Filter property I need this form:
    (F1 and F2) or (F1 and F3)

    I want to convert my condition string automatically with a function. it is based on De morgan law...

Posting Permissions

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



Click Here to Expand Forum to Full Width