Q194832: FIX: Memo Has Characters Added to Value in Locals/Watch Window
Article: Q194832
Product(s): Microsoft FoxPro
Version(s): WINDOWS:5.0,5.0a
Operating System(s):
Keyword(s): kbMiscTools kbvfp600 kbvfp600fix kbXBase
Last Modified: 21-AUG-1999
-------------------------------------------------------------------------------
The information in this article applies to:
- Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a
-------------------------------------------------------------------------------
SYMPTOMS
========
When you place a memo field name into the Debugger Watch Window, the value that
displays may contain extra characters appended to the end of the memo field's
actual contents.
This behavior does not occur in Visual FoxPro 6.0
STATUS
======
Microsoft has confirmed this to be a bug in the Microsoft products listed at the
beginning of this article. This bug has been corrected in Visual FoxPro 6.0.
MORE INFORMATION
================
Steps to Reproduce Behavior
---------------------------
1. Run the following code from a program (.prg) file:
_CLIPTEXT = 'mymemo'
CREATE CURSOR CTEMP(MYMEMO M(4))
APPEND BLANK
REPLACE MYMEMO WITH 'Junk'
CLEAR DEBUG
KEYBOARD '{alt+3}{ctrl+v}{enter}'
2. Look at the value of mymemo in the Watch Window.
The value for mymemo in the Watch window contains something like the
following:
"Junk|", or "JunkW TTOOLBAR Debugger L ST
"
The extra characters vary depending on what you were doing in Visual FoxPro
before you look at the value in the Watch Window.
REFERENCES
==========
(c) Microsoft Corporation 1998, All Rights Reserved.
Contributions by Jim Saunders, Microsoft Corporation
Additional query words:
======================================================================
Keywords : kbMiscTools kbvfp600 kbvfp600fix kbXBase
Technology : kbVFPsearch kbAudDeveloper kbVFP500 kbVFP500a
Version : WINDOWS:5.0,5.0a
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.