Microsoft KB Archive/100553: Difference between revisions

From BetaArchive Wiki
m (Text replacement - """ to """)
m (Text replacement - "&" to "&")
 
Line 24: Line 24:
=== Examples ===
=== Examples ===


<pre>  REPORT FORM myreport FOR mylogicfield = .T.  &amp;&amp; This will cause error
<pre>  REPORT FORM myreport FOR mylogicfield = .T.  && This will cause error
   REPORT FORM myreport FOR mylogicfield        &amp;&amp; This is correct
   REPORT FORM myreport FOR mylogicfield        && This is correct


   REPORT FORM myreport FOR mylogicfield = .F.  &amp;&amp; This will cause error
   REPORT FORM myreport FOR mylogicfield = .F.  && This will cause error
   REPORT FORM myreport FOR mylogicfield        &amp;&amp; This is correct</pre>
   REPORT FORM myreport FOR mylogicfield        && This is correct</pre>
{|
{|
|width="100%"|
|width="100%"|

Latest revision as of 12:24, 21 July 2020

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.