Microsoft KB Archive/105285: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "<" to "<")
m (Text replacement - ">" to ">")
 
Line 23: Line 23:
The @ ... GET-Popup command has a PICTURE clause that exceeded the 255-character limitation for a character string used with a command. The PICTURE clause contains the caret (^) popup-specification code and the popup options. For example:
The @ ... GET-Popup command has a PICTURE clause that exceeded the 255-character limitation for a character string used with a command. The PICTURE clause contains the caret (^) popup-specification code and the popup options. For example:


<pre>  @ ... GET <memvar&gt; PICTURE "@^ <option1&gt;; <option2&gt;; <option3&gt;; ..."
<pre>  @ ... GET <memvar> PICTURE "@^ <option1>; <option2>; <option3>; ..."
</pre>
</pre>
== RESOLUTION ==
== RESOLUTION ==

Latest revision as of 16:43, 20 July 2020

PRB: "Unrecognized Phrase/Keyword in Command"; @ ... GET-Popup

ID: Q105285

2.50 2.50a | 2.00 2.50 2.50a | 2.60a

WINDOWS    | MS-DOS          | MACINTOSH
  kbprb

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a
  • Microsoft FoxPro for Macintosh, version 2.6a

SYMPTOMS

The error message "Unrecognized phrase/keyword in command" occurs on an @ ... GET-Popup command during compilation of a generated screen code file (.SPR).

CAUSE

The @ ... GET-Popup command has a PICTURE clause that exceeded the 255-character limitation for a character string used with a command. The PICTURE clause contains the caret (^) popup-specification code and the popup options. For example:

   @ ... GET <memvar> PICTURE "@^ <option1>; <option2>; <option3>; ..."

RESOLUTION

To prevent this error from occurring, do the following in the Screen Builder:

1. In the Setup code, store all the popup options in an array.

2. In FoxPro for Windows, select the Popup tool and create a popup. In

   FoxPro for MS-DOS, choose Popup from the Screen menu. In the Popup
   dialog box, specify the array name in the Array Popup text box.

Unlike the List Popup option, the Array Popup option does not have any character-string limitation. The size of the array is limited only by available memory. To use an Array Popup instead, use the following steps:

1. Dimension an array in either the Screen Setup or On Window Activate

   snippet.

2. Select Layout from the Screen menu, and select Code. 3. Select Screen Setup Code or On Window Activate.

4. Type appropriate code to define and name the array, such as the

   following:

      DIMENSION atestarray(5,1)
      atestarray(1,1)="This is the First list choice"
      atestarray(2,1)="This is the Second list choice"
      atestarray(3,1)="This is the Third list choice"
      atestarray(4,1)="This is the Fourth list choice"
      atestarray(5,1)="This is the Fifth list choice"

KBCategory:   kbprb

KBSubcategory: FxtoolSbuilder Additional reference words: FoxDos FoxWin FoxMac 2.00 2.50 2.50a errmsg err msg

Keywords          : kberrmsg FxtoolSbuilder 
Version           : 2.50 2.50a | 2.00 2.50 2.50a | 2
Platform          : MACINTOSH MS-DOS WINDOWS

Last Reviewed: May 22, 1998
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.