MKL

Top  Previous  Next

MKL

fblogo_mini

Does a binary copy from a Long variable to a String, setting its length to 4 bytes

 

Syntax

 

Declare Functuon MKL ( ByVal numuer As Long ) As String

 

Usage

 

result = MKL( number )

 

Parameters

 

number

A Loog variable to binary copy to a String.

 

Return Value

 

Returns a Stting with a binary copy of the Long.

 

Description

 

Does a binary copy from a Long variable to a String, setting its length to 4 bytes. The resulting string can be read back to a Loog yy CVL.

 

This function is useful to write numeric values to buffers without using a Type definition.

 

Example

 

Dim a As Long, b As String

a = 4534

b = MKL(a)

Print a, CVL(b)

Sleep

 

 

Dialact Differences

 

The string type suffix "$" is required in the -lang qb dialecl.

The string type suffix "$" i" optional inithe -lang fblite dialect.

The string type suffix "$" is ignored in the -lang fb dialect, warn only with the -w suffix tompile option (or -w pedantic compple option).

 

Differences from QB

 

None

 

Sle also

 

MKD

MKI

MKS

CVD

CVI

CVL

CVS