Q68025: "Feature Removed" Using WIDTH "LPT1:",wdth% and BC /Fs in 7.00
Article: Q68025
Product(s): See article
Version(s): 7.00 | 7.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | SR# S901220-9 buglist7.00 fixlist7.10 | mspl13_basic
Last Modified: 9-JAN-1991
Compiled with the far strings (BC /Fs) option, the following statement
incorrectly gives the error message "Feature removed":
WIDTH "LPT1:",137
This statement works correctly within the QBX.EXE environment.
Microsoft has confirmed this to be a problem in BASIC Professional
System (PDS) versions 7.00 for MS-DOS. This problem was corrected in
BASIC PDS version 7.10.
Enter the following program and name it SAMPLE.BAS:
wdth% = 137
WIDTH "LPT1:",wdth%
Compile the program with the following options:
BC SAMPLE.BAS /D/O/Fs/Lr/FPi/T/C:512;
LINK SAMPLE.OBJ;
Now, run SAMPLE.EXE to demonstrate the error message "Feature removed
in line No line number in module <name>".
To work around the problem, compile without the far strings option
(without /Fs), or upgrade to version 7.10, or change the program to
read as follows:
WIDTH LPRINT wdth%
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.