VAL() Fails When Basic 7.10 NOFLTIN.OBJ Stub File Is Linked (67886)






This article was previously published under Q67886

SYMPTOMS

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.

STATUS

Microsoft has confirmed this to be a bug in 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 in the Microsoft Knowledge Base 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;
				

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: KB67886