PRB: Operator/Operand Type Mismatch When Comparing Two Objects (126780)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q126780 SYMPTOMS
The 'Operator/Operand Type Mismatch' error is returned when comparing two
objects with the equal sign (=) operator.
CAUSE
The equal sign operator is used to compare character, logical, date, or
numeric data. When the variable is an object reference, the equal sign is
the assignment operator. The equal sign is used to create a reference to an
object. It should not be used to compare objects.
WORKAROUND
Use the COMPOBJ() function to compare two objects. The COMPOBJ() function
compares the properties of an object. It returns .T. if the properties and
property values of two objects are identical.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/12/2000 |
---|
Keywords: | kbcode kberrmsg KB126780 |
---|
|