Autosearch: AND or OR?
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com