DOCUMENT:Q141956 08-FEB-2000 [foxpro] TITLE :BUG: 'Z' Function on @ GET Doesn't Suppress Display of Zero PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:3.0b,5.0,6.0 OPER/SYS: KEYWORDS:kbbuglist ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 3.0b, 5.0, 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== When you have a format function code of 'Z' defined for an @...GET text box on your screen, the value of '0' (zero) is still displayed. STATUS ====== Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION ================ The following information is taken from the Help file on the FUNCTION clause for the text box. The FUNCTION parameter: Specifies a function code or picture code that determines how the text box output is displayed or printed. You can include the FUNCTION clause, the PICTURE clause, or both to create an editing mask. These clauses contain special codes that control how the memory variable, array element, or field is displayed and edited. The Z function code is supposed to display the memory variable or field name as blank if its numeric value is 0. In Visual FoxPro, when the text box has focus, the display of the zero is not suppressed. In FoxPro for Windows, no zero is displayed. Steps to Reproduce Problem -------------------------- CLEAR Dept=0 @ 2,2 GET dept FUNCTION "@Z" ; SIZE 1.000, 18.000 ; FONT "MS sans Serif", 8 READ Additional query words: VFoxWin buglist3.00b text box kbvfp300 kbvfp500 kbvfp600 function picture clause ====================================================================== Keywords : kbbuglist Technology : kbVFPsearch kbAudDeveloper kbVFP300b kbVFP500 kbVFP600 Version : WINDOWS:3.0b,5.0,6.0 ============================================================================= 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 2000.