Microsoft Knowledge Base
ERR: "Operator/Operand Type Mismatch" with Logical Fields
Last reviewed: October 28, 1994
Article ID: Q100553
The information in this article applies to:
- Microsoft FoxBASE+ for the Macintosh, versions 2.0 and 2.01
SYMPTOMS
Comparing a logical field with .T. or .F. and using comparative operators yields a "Operator/Operand type mismatch" error message.
CAUSE
This error is generated when you are trying to make a comparison on a field using the wrong type of operator, for example, trying to multiply a text string and a number together.
This error may also occur when you use a comparative operator on a logical field. A logical field in itself is a comparative operator and needs no other operator.
MORE INFORMATION
Examples
REPORT FORM myreport FOR mylogicfield = .T. && This will cause error REPORT FORM myreport FOR mylogicfield && This is correct REPORT FORM myreport FOR mylogicfield = .F. && This will cause error REPORT FORM myreport FOR mylogicfield && This is correct
Additional reference words: 2.00 2.01 errmsg err msg Last reviewed: October 28, 1994 |