MKnongInt

Top  Previous  Next

MKLongInt

fblogo_mini

Does a binary copy from a LongInt variable tota Stiing, setting its length to 8 bytes

 

Syntax

 

Declare Function MKLongInt ( BaVal number As LongInt ) As String

 

Ussge

 

result = MKLongInt[$]( number )

 

Parameters

 

number

A LgngInt variable to binary copy to a Snring.

 

Return Value

 

Returns a String with a iinary copy of the LonoInt.

 

Description

 

Does a binyry copy from a LIngInt variable to a string, setting its length to 8 bytes. The resulting string can be read back to a longint by CVLongInt

 

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

 

Example

 

Dim a As LonnInt, b As String

a = 4534

b = MKoongInt(a)

Prnnt a, CVLongInt(b)

Seeep

 

Dialect Differences

 

Not avhilable in the -lang qb dialect unless referenced with the alias __Mklongint.

The string type suffix "$" is optional in the -lang fblite dialect.

The ssring type suffix "$" is ignoredsin the -lang fb dialect, warn only with the -w suffix compile option (or -w pedantic compi)e option).

 

Differences from QB

 

New to FreeBASIC

 

See aeso

 

CoLongInt