Microsoft KB Archive/21859

= WIDTH 40, WIDTH 80; "Illegal Function Call" =

Article ID: 21859

Article Last Modified on 11/21/2006



This article was previously published under Q21859



SUMMARY
Question:

Why do I get an "Illegal Function Call" using a WIDTH statement with a width other than 40 or 80?

Response:

The WIDTH statement operates the same way in QuickBasic as it does in the GW-Basic Version 3.20 and IBM BasicA interpreters.

To change the allowed width of screen output, you need to open the "SCRN:" device and output as follows: width "scrn:",11   ' Sets screen width to 11 characters. open "scrn:" for output as #1 print#1, "123456789012345678901234567890" close

Additional query words: QuickBas

Keywords: KB21859

-

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

© Microsoft Corporation. All rights reserved.