PRB: Picture Clause Doesn't Work with #ITSEXPRESSION

Last reviewed: May 17, 1996
Article ID: Q136758
The information in this article applies to:
  • Microsoft FoxPro for Macintosh, version 2.6a

SYMPTOMS

In FoxPro for Macintosh, using #ITSEXPRESSION with a GET command does not display the picture correctly when a picture clause is used and when the value to be displayed is a character value.

STATUS

Microsoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new screen.

  2. In the setup code, type:

    #ITSEXPRESSION ~ cPicture = "@Z 9,999.99" cValue = "123.45"

    NOTE: A space should appear between the 'N' of #ITSEXPRESSION and the tilde (~), otherwise the screen appears and then immediately closes when it is run.

  3. In the Screen Builder, create a get field with input of cValue and FORMAT of ~cPicture. When you run the screen, notice that value comes up in the screen as @Z .,5. If cValue is initialized as numeric with value of 123.45 or as character with a value of "", the value is displayed correctly.


Additional reference words: 2.60a FoxMac
KBCategory: kbtool kbprb
KBSubcategory: FxtoolSbuilder


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: May 17, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.