Microsoft KB Archive/93636

= ERR: &quot;Incorrect Results&quot; When Using SET EXACT in FoxBASE+/Mac =

PSS ID Number: 93636

Article Last Modified on 10/23/1999

-

The information in this article applies to:


 * Microsoft FoxBASE+ for Macintosh 2.01

-



This article was previously published under Q93636



SYMPTOMS
When SET EXACT is set to ON, checking memory variables that contain different numbers of spaces does not produce the expected results.



CAUSE
The error occurs because the SET EXACT ON command removes the spaces from each memory variable before they are compared.



RESOLUTION
The following code displays the message

Incorrect results.

However, if the first line of code is changed to SET EXACT OFF, the code displays &quot;Correct results.&quot; SET EXACT ON  var1 = &quot; &quot;    && 1 space var2 = &quot;  &quot;  && 3 spaces IF var1 = var2 WAIT &quot;Incorrect results&quot; ELSE WAIT &quot;Correct results&quot; ENDIF

Additional query words: 2.01 FoxBASE+/Mac errmsg err msg

Keywords: KB93636

Technology: kbAudDeveloper kbFoxBASE201Mac kbFoxBASESearch kbFoxproSearch kbHWMAC kbOSMAC

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.