Cvl Function

Purpose

Converts four characters in a string to a 32 bit integer.

Syntax

long = Cvl(a$ [,offset% = 1])

Description

Cvl takes four characters starting at offset in a string as a number. Cvl(a$) is equivalent to LPeek(V:a$). Cvl returns 0 if the string length is less than four.

Example

OpenW 1

Print Cvl("Hello GFA")    // 1819043144

Print Cvl("Hello GFA", 2) // 1869376613

Remarks

Cvl() is the reverse function of Mkl$(). Cvl() is the same as Cv4() and Cvi().

See Also

Asc(), Cvi(), Cvs(), Cvd(), Chr$(), Mki$(), Mkl$(), Mks$(), Mkd$()

{Created by Sjouke Hamstra; Last updated: 27/09/2014 by James Gaite}