Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Autosearch: AND or OR?

edited April 2003 in End User
In the designer, you can add TppAutoSearchFields as OR criteria. How can
I tell if a TppAutoSearchField was added as an AND or an OR criterion in
code?

Best Regards,

James Crosswell
Software Engineer
Microforge.net Limited
http://www.microforge.net

Comments

  • edited April 2003
    'And' criteria are implied when two criteria are next to each other.
    Otherwise, if an OR criteria exists between two criteria, then they are
    OR'ed:) You can loop through the criteria objects in a dataview. In the
    AddSearchCriteria example you have downloaded from a previous post. You
    should see that there is a loop of the criteria objects in the
    ChangeCriteria method of the example. You can determine if you have a OR
    criteria object by checking if lCriteriaField.CriteriaType = dacrOR. Then
    you know that the two criteria next to this one are OR'ed together instead
    of AND'ed.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.