qb45advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MKSMBF$ and MKDMBF$ Functions Details
  QuickSCREEN      Details      Example      Contents      Index
──────────────────────────────────────────────────────────────────────────────
MKSMBF$ and MKDMBF$ Functions Details
 
Syntax
  MKSMBF$(single-precision-expression)
  MKDMBF$(double-precision-expression)
 
These functions are used to write real numbers to random-access files
using Microsoft Binary format. They are particularly useful for
maintaining data files created with older versions of BASIC.
 
The MKSMBF$ and MKDMBF$ functions convert real numbers in IEEE-format
to strings so they can be written to the random-access file.
 
To write a real number to a random-access file in Microsoft Binary
format, convert the number to a string using MKSMBF$ (for a
single-precision number) or MKDMBF$ (for a double-precision number).
Then store the result in the corresponding field (defined in the FIELD
statement) and write the record to the file using the PUT statement.