Q67886: VAL() Fails When BASIC 7.10 NOFLTIN.OBJ Stub File Is Linked
Article: Q67886
Product(s): See article
Version(s): 7.10 | 7.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | buglist7.10 | mspl13_basic
Last Modified: 2-JAN-1991
Any argument passed to the VAL() function makes VAL() return zero or
incorrect results in a program linked with the NOFLTIN.OBJ file from
BASIC PDS version 7.10.
Microsoft has confirmed this to be a problem with Microsoft BASIC
Professional System (PDS) version 7.10 for MS-DOS and MS OS/2. We are
researching this problem and will post new information here as it
becomes available. (This problem does not occur in BASIC PDS 7.00.)
The code example below prints an incorrect result for VAL() at run
time when linked with the BASIC 7.10 stub file NOFLTIN.OBJ.
' File name: STUB.BAS
d$ = "5"
PRINT VAL(D$) ' Is supposed to print "5".
Compile and link with the following command lines:
BC STUB.BAS /O;
LINK /NOE STUB.OBJ+NOFLTIN.OBJ;
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.