* *
*
* * News
 • Daily news
 • Archived news

Columns
 • WildCard
 • Qbasic Articles
 • QB Comic!

Learning center
 • QB Books
 • Qbasic Lessons!
 • Qbasic FAQ
 • Newbies Section
 • Qbasic Tutorials

* *
*
*
*
*  
.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.
 
* * ** * * * *