bas7advr.hlp (Topic list)
CVI, CVL, CVS, CVD, and CVC Functions Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
CVI, CVL, CVS, CVD, and CVC convert strings containing numeric values
to numbers. The strings are created by MKI$, MKL$, MKS$, MKD$, and MKC$.
 
CVI(2-byte-string)  ║  CVS(4-byte-string)  ║  CVC(8-byte-string)
CVL(4-byte-string)  ║  CVD(8-byte-string)  ║
    ■ CVI converts a 2-byte string created with MKI$ back to an integer.
    ■ CVL converts a 4-byte string created with MKL$ back to a long
      integer.
    ■ CVS converts a 4-byte string created with MKS$ back to a
      single-precision number.
    ■ CVD converts an 8-byte string created with MKD$ back to a
      double-precision number.
    ■ CVC converts an 8-byte string created with MKC$ back to a
      currency number.
 
Usage Notes
    ■ CVI, CVL, CVS, CVD, and CVC are used with a FIELD statement to read
      numbers from a random-access file. The functions take strings
      defined in the FIELD statement and convert them to a value of the
      corresponding numeric type.
    ■ The functions are the inverse of MKI$, MKL$, MKS$, MKD$, and MKC$.
    ■ These BASIC record variables provide a more efficient and
      convenient way of reading and writing random-access files than do
      some older versions of BASIC.