Microsoft KB Archive/305238

= FIX: FOR...EACH Fails When Character Array Element Contains More Than 255 Characters =

Article ID: 305238

Article Last Modified on 10/16/2002

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q305238



SYMPTOMS
When you use a FOR...NEXT command with a character array element that contains more than 255 characters, the following error may be received:

String is too long to fit.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was corrected in Microsoft Visual FoxPro version 7.0 for Windows.



MORE INFORMATION
To reproduce the problem, create a program and run the following code in Visual FoxPro 5.0 or 6.0: DIMENSION laX(1) laX(1) = SPACE( 256 ) FOR EACH lcX IN laX ? lcX NEXT

Keywords: kbbug kbfix kboop kbcodesnippet kbvfp700fix KB305238

-

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

© Microsoft Corporation. All rights reserved.