converts a 32-bit integer expression to a four character string.
$ = Mkl[$](x [,x1,..])
x, x1,..: Integer
Creates a four character long string from an integer. Additional arguments increases the size of the string with a multiple of four.
Local a$, b$, c$, d$, e$
OpenW # 1
Open "C:\Test.DAT" for Random As # 1, Len = 19
Field # 1, 1 As a$, 2 As b$, 4 As c$, 4 As d$, 8 As e$
a$ = Chr$(123)
b$ = Mkw$(1234)
c$ = Mki$(12345678)
d$ = Mks$(1.23)
e$ = Mkd$(1.23)
Put # 1, 1
//
Get # 1, 1
Print Asc(a$)`Cvi(b$)`Cvl(c$)`Cvs(d$)`Cvd(e$)
Close # 1
Kill "c:\test.dat"
prints 123 1234 12345678 1.23000019.. 1.23
Mkl$() is the reverse function of Cvl().
Cvn Functions, Mkl, Mki, Mkw, Mkd, Mks, MkCur, MkLarge
{Created by Sjouke Hamstra; Last updated: 18/10/2014 by James Gaite}