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

Columns
 • WildCard
 • Qbasic Articles
 • QB Comic!

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

* *
*
*
*
*  
.MKD$, MKI$, MKL$, and MKS$ Functions Details.

  QuickSCREEN      Details      Example      Contents      Index
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
MKD$, MKI$, MKL$, and MKS$ Functions Details
Syntax
  MKI$(integerexpression)
  MKS$(single-precision-expression)
  MKL$(long-integer-expression)
  MKD$(double-precision-expression)
 
The MKI$, MKS$, MKL$, and MKD$ functions are used with FIELD and PUT
statements to write real numbers to a random-access file. The functions
take numeric expressions and convert them to strings that can be stored
in the strings defined in the FIELD statement. The functions are the
inverse of CVI, CVS, CVL, and CVD.
 
  Function   Description
  MKI$       Converts an integer to a two-byte string
  MKS$       Converts a single-precision value to a four-byte string
  MKL$       Converts a long-integer value to a four-byte string
  MKD$       Converts a double-precision value to an eight-byte string
 
  Note: BASIC record variables provide a more efficient and convenient
        way of reading and writing random-access files.
* * ** * * * *