FIX: "Too Many PICTURE Characters Specified" in @ ... GET

ID: Q111509

2.5x 2.6x | 2.00 2.5x 2.6x | 2.50b

WINDOWS   | MS-DOS         | MACINTOSH
kbui kbprg

The information in this article applies to:

- Microsoft FoxPro for Windows, versions 2.5x, 2.6x - Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6x - Microsoft FoxPro for Macintosh, versions 2.5b

SYMPTOMS

The error message "Too many PICTURE characters specified" occurs when you attempt to run a screen program.

CAUSE

The screen program contains an @ ... GET command, based upon a character memory variable, that includes a SIZE clause in which the result of the number of rows multiplied by the number of columns is greater than 250.

RESOLUTION

If the Screen Builder was not used, replace the @ ... GET command with an @ ... EDIT command. If the screen was built using the Screen Builder in FoxPro for Windows or FoxPro for Macintosh, replace the GET object with an EDIT region. If the screen was built using the Screen Builder in FoxPro for MS-DOS, change the GET object to an EDIT object.

In FoxPro for Windows, version 2.6 and later, you also can replace the GET with an EDIT region, then clear the Scroll Bar on Edit Region box.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0 for Windows.

MORE INFORMATION

Steps to Reproduce Problem

1. Create a new screen with one GET field based on m.x.

2. Resize the GET field so the number of characters it can hold is greater

   than 250.

2. In the Setup code of the screen, add the following command:

      m.x = "Test String"

3. Generate the screen code.

4. Execute the .SPR program.

The error message "Too many PICTURE characters specified" will occur and the @ ... GET command will be highlighted in the .SPR program.

Additional reference words: FoxMac FoxDos FoxWin VFoxWin 2.00 2.50 2.50a 2.50b 2.60 2.60a errmsg err msg @get @...get fixlist3.00 buglist2.50 buglist2.50a buglist2.50b buglist2.60 buglist2.60a KBCategory: kbui kbprg KBSubcategory: FxtoolSbuilder

Keywords          : kberrmsg FxtoolSbuilder 
Version           : 2.5x 2.6x | 2.00 2.5x 2.6x | 2.5
Platform          : MACINTOSH MS-DOS WINDOWS
Solution Type     : kbfix

Last Reviewed: May 22, 1998