bas7advr.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.
MKI$, MKL$, MKS$, MKD$, and MKC$ Functions Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
MKI$, MKL$, MKS$, MKD$, and MKC$ convert numeric values to string values.
MKI$(integerexpression%) ║ MKD$(double-precision-expression#)
MKL$(long-integer-expression&) ║ MKC$(currency-expression@)
MKS$(single-precision-expression!) ║
■ MKI$ converts an integer to a 2-byte string.
■ MKL$ converts a long-integer value to a 4-byte string.
■ MKS$ converts a single-precision value to a 4-byte string.
■ MKD$ converts a double-precision value to an 8-byte string.
■ MKC$ converts a currency value to an 8-byte string.
Usage Notes
■ MKI$, MKL$, MKS$, MKD$, and MKC$ are used with FIELD and PUT
statements to write numbers to a random-access file. The functions
convert numeric expressions to strings that can be stored in the
strings defined in the FIELD statement.
■ These functions are the inverse of CVI, CVL, CVS, CVD, and CVC.
■ These BASIC record variables provide a more efficient and convenient
way of reading and writing random-access files than some older
versions of BASIC.