Q33629: "Illegal Function Call" SHELLing to More Than 124 Characters
Article: Q33629
Product(s): See article
Version(s): 3.00 4.00 4.00b 4.50
Operating System(s): MS-DOS
Keyword(s): ENDUSER | B_BasicCom | mspl13_basic
Last Modified: 16-DEC-1989
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.
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.