Microsoft KB Archive/162086

= PRB: @GET...LIST Command Can Cause Errors in VFP Macintosh =

Article ID: 162086

Article Last Modified on 2/5/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q162086



SYMPTOMS
When you run a program that contains an @GET...LIST command populated with values from a long string, one of two error messages may appear. Depending on the length of the @GET...LIST command, the following message appears:

Unknown error code

If a longer string populates the @GET...LIST, Visual FoxPro shuts down and the following message appears:

Sorry, a system error occurred.

"Microsoft Visual FoxPro"

error type 11

You have to click Restart in the error message dialog box. The @GET...LIST does not cause either error in Visual FoxPro 2.6a for the Macintosh.



RESOLUTION
Populate the @GET...LIST from an array or create an @GET...LIST from a popup menu. Create the popup menu with the DEFINE POPUP command.



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



MORE INFORMATION
The following example illustrates this behavior.

Steps to Reproduce Behavior
WARNING: Following these steps may cause your machine to terminate abnormally. Close all running applications and save your data before following this procedure. After running this example, you may want to rebuild the desktop file of the Macintosh by holding the Option and Apple keys down while choosing Restart from the Special menu pad.

  Create a program that contains the following code: x=" " xc=REPLICATE('aaaaaaaaa;',28) @ 25,15 GET x FUNCTION '^3 '+xc

(Make sure there is a space character between the 3 and the final quotation mark.)

 Run the program and the message "Unknown error code " appears.  Change the line: xc=REPLICATE('aaaaaaaaa;',28) to   xc=REPLICATE('aaaaaaaaa;',29) and run the program. The "type 11 error" appears and Visual FoxPro shuts down. 

Additional query words: VFoxMac kbdsd

Keywords: kberrmsg KB162086

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.