Microsoft KB Archive/33629

From BetaArchive Wiki
Knowledge Base


"Illegal Function Call" SHELLing to More Than 124 Characters

Article ID: 33629

Article Last Modified on 11/21/2006



APPLIES TO

  • Microsoft QuickBasic 3.0, when used with:
    • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft QuickBasic 4.0, when used with:
    • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft QuickBASIC 4.0b, when used with:
    • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft QuickBasic 4.5 for MS-DOS, when used with:
    • Microsoft MS-DOS 6.22 Standard Edition
  • Microsoft BASIC Compiler 6.0
  • Microsoft BASIC Compiler 6.0b
  • Microsoft BASIC Professional Development System 7.0



This article was previously published under Q33629

SUMMARY

The SHELL statement takes a string expression of 124 characters or less. QuickBasic Versions 4.00 4.00b and 4.50 for MS-DOS, the Basic compiler Version 6.00 and 6.00b for MS-DOS or MS OS/2, or Microsoft Basic PDS Version 7.00 for MS OS/2 and MS-DOS give an "Illegal function call" error message for longer strings.

In QuickBasic Version 3.00, the same limitation applies; however, the string expression is truncated without any error message if it is longer than 124 characters. If the string is longer than 271 characters in QuickBasic Version 3.00, a "string space corrupt" error message results.


Additional query words: QuickBas BasicCom

Keywords: KB33629