KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q305247: FIX: Error Setting Property Named "Value" to Null in Class

Article: Q305247
Product(s): Microsoft FoxPro
Version(s): 5.0,5.0a,6.0
Operating System(s): 
Keyword(s): kbOOP kbvfp kbGrpDSFox kbDSupport kbCodeSnippet kbvfp700fix kbvfp700
Last Modified: 24-AUG-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a, 6.0 
-------------------------------------------------------------------------------

SYMPTOMS
========

If you create a class with a property named "Value", attempts to change this
property to =NULL cause the following error:

  Fatal error: Exception code = C00000FD

The error does not occur if you type .NULL. instead of =NULL (or =null). Note
that "Value" is a reserved word in Visual FoxPro, and that naming a property or
method after a reserved word is not recommended.

STATUS
======

This problem was corrected in Visual FoxPro version 7.0 for Windows.

MORE INFORMATION
================

Steps to Reproduce Behavior
---------------------------

1. Create and then run a program containing the following code:

  DELETE FILE testxx.vc?
  _CLIPTEXT = "value"
  KEYBOARD '{alt+c}{p}{ctrl+v}{alt+a}{alt+c}{ctrl+s}{alt+f}{c}'
  MODIFY CLASS test AS CUSTOM OF testxx
  MODIFY CLASS test AS CUSTOM OF testxx NOWAIT

2. In the Property sheet of the class, locate the Value property created in the
  program from step 1.

3. Change the value of the Value property from .F. to =NULL and press the UP
  ARROW key. A memory error appears and the program closes.

Additional query words:

======================================================================
Keywords          : kbOOP kbvfp kbGrpDSFox kbDSupport kbCodeSnippet kbvfp700fix kbvfp700 
Technology        : kbVFPsearch kbAudDeveloper kbVFP500 kbVFP600 kbVFP500a
Version           : :5.0,5.0a,6.0
Issue type        : kbbug
Solution Type     : kbfix

=============================================================================

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.

Copyright Microsoft Corporation 1986-2002.