company logo

PropertyHandle :: operator- - Subtract properties

The subtract operation performed depends on the type of the first operand. If the second operand is not compatible with the first operand the function tries to convert the second operand into the type of the first operand. If no conversion is possible the operation fails.

1. Numerical data

The operator subtract the second operand from the first one.

2. Text data

The operator removes all occurrences of operand 2 in operand 1, i.e. "Paul Miller" - "aul" = "P Miller".

3. Collections

The Minus operation is performed as operand1.Minus(operand2)

4. Time fields

For date and time one may subtract integer or time values. values, only. Subtracting an integer results in a new time value of the same type (operand1). Subtracting a time value results in an integer containing the distance between the time values.

5. Logical

The subtract operation returns the result of an exclusive or operation

The result is returned in a property handle that is created temporarily. One may assign the result to another property handle or performing further operations.

Return value:   - internal feature (not documented) (   )

Implementation details

PropertyHandle PropertyHandle  :: operator- ( PropertyHandle &cprop_hdl )
  • cprop_hdl - Property Handle