NOFLTIN.OBJ: Hex Numbers Not Allowed with INPUT, READ, or VAL (61406)



The information in this article applies to:

  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
  • Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1

This article was previously published under Q61406

SUMMARY

When you LINK the stub file NOFLTIN.OBJ into a program compiled with the /O switch, or into a custom run-time module built with BUILDRTM.EXE, the numeric parsing code will be replaced with an integer-only version.

If you link with NOFLTIN.OBJ, all numbers used by INPUT, READ, and VAL must be within the range of legal long integers.

Although it seems that a number represented in hexadecimal should fall into the category of "legal long integers," it does not. A program that INPUTs, READs, or uses the VAL function on a hexadecimally represented integer will either generate an error or return incorrect results. Hexadecimal number parsing is also eliminated with the NOFLTIN.OBJ stub file.

MORE INFORMATION

The following is an explanation of what happens when a program linked with the NOFLTIN.OBJ stub file uses either the INPUT, READ, or VAL commands on a hexadecimal number:

INPUT - returns a "Redo from start"
READ - returns "Syntax error in module <module name>"
VAL - returns a value of 0


Modification Type:MajorLast Reviewed:10/20/2003
Keywords:KB61406