Microsoft KB Archive/99632

= PRB: &quot;String too long to fit&quot; or &quot;Feature is not available&quot; =

Article ID: 99632

Article Last Modified on 12/3/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.6 Standard Edition
 * Microsoft FoxPro 2.6a Standard Edition
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.6 for MS-DOS
 * Microsoft FoxPro 2.6a Standard Edition

-



This article was previously published under Q99632



SYMPTOMS
Using the CALL command to call a binary file, can cause the following error message in FoxPro for Windows and the 32-bit (extended) versions of FoxPro for MS-DOS:

String too long to fit

In Visual FoxPro for Windows, the LOAD function causes this error message:

Feature is not available



RESOLUTION
Convert the binary file into a Library Construction Kit (LCK) routine that uses the API's parameter-passing feature.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
  Create a &quot;safe&quot; binary file:   Type &quot;CD\&quot; and Enter at the MS-DOS prompt Type &quot;COPY CON:dummy.bin&quot; and Enter at the MS-DOS prompt Type &quot;REM&quot; and Enter Hit CTRL+Z and Enter Type &quot;DEBUG dummy.bin&quot; and Enter at the MS-DOS prompt Type &quot;E 100&quot; and Enter at the Debug hyphen prompt Type &quot;CB&quot; and Enter Type &quot;W&quot; and Enter at the Debug hyphen prompt Type &quot;Q&quot; and Enter at the Debug hyphen prompt When called, this file returns nothing.   Enter the following commands in the FoxPro Command window: LOAD \dummy.bin mvar=REPLICATE(&quot; &quot;,1000) CALL dummy WITH mvar  Observe the following results:

 FoxPro for MS-DOS (32-bit version) returns the &quot;String too long to fit&quot; error message. FoxPro for Windows returns the &quot;String too long to fit&quot; error message.</li> Visual FoxPro for Windows returns the &quot;Feature is not available&quot; error message.</li></ul> </li></ol>

Additional query words: VFoxWin FoxWin FoxDos bin foxprox errmsg

Keywords: KB99632

-

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

© Microsoft Corporation. All rights reserved.