Main Table of Contents


Table of Contents

typedef PtCmpOp

typedef PtCmpOp


Intro

PtCmpOp is used to specify query conditions for queries. For instance, conditions can be stated using the SetMember() functions generated by PTXX.

The data member is compared to the value specified in the first parameter using the comparison operator specified in the second parameter:

MyQuery.SetName ("Le*ers", PtEQ); // Name=="Le*ers"

PtCmpOp is the type for this comparison operator. The following values are possible:

PtEQ Equal to
PtLT Less than
PtGT Greater than
PtGTE Greater than or equal to
PtLTE Less than or equal to
PtNEQ Not equal to

For String and Date classes, there is an additional value available, which can be 'or'ed to the values above:

PtCMP_IGNOREWILDCARDS Do not expand wildcard characters

For PtString, there are additional values available, which can be 'or'ed to the values above:

PtCMP_IGNORECASE Ignore case of characters
PtCMP_IGNOREDIACRITICS Ignore diacritics
PtCMP_IGNOREWHITESPACE Ignore whitespace characters

Copyright (c) 1996 POET Software, Inc. All rights reserved. Reproduction in whole or in part in any form or medium without the express permission of POET Software, Inc. is prohibited.