Microsoft KB Archive/100553

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

KBCategory: kbusage kbprg kberrmsg
KBSubcategory:


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 28, 1994
©1997 Microsoft Corporation. All rights reserved. Legal Notices.