CVLongInt
 
Converts an eight byte string to a long integer variable

Syntax
Usage

result = CVLongInt( str )

Parameters

str
A String exactly eight bytes in length with a binary copy of a long integer variable stored in it.

Return Value

A LongInt variable to copy the binary copy of a long integer to.

Description

Does a binary copy from an 8-byte-string to a longint variable. The result will have a sense only if the string contained a correctly formatted longint, as the one generated by MKLongInt

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

Example

Dim a As LongInt, b As String
a=4534
b=MKLongInt(a)
Print a, CVLongInt(b)
Sleep


Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Cvlongint.

Differences from QB

  • New to FreeBASIC

See also