CVLongInt

Converts a double-precision floating-point number or eight-byte string to a 
KeyPgLongintLongInt variable

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction CVLongInt ( KeyPgByvalByVal dbl KeyPgAsAs KeyPgSingleDouble ) KeyPgAsAs KeyPgLongLongInt
	KeyPgDeclareDeclare KeyPgFunctionFunction CVLongInt ( KeyPgByrefByRef str KeyPgAsAs KeyPgConstQualifierConst KeyPgStringString ) KeyPgAsAs KeyPgLongLongInt

Usage
	result = CVLongInt( dbl )
	result = CVLongInt( str )

Parameters
	dbl
		A KeyPgDoubleDouble floating-point number with a binary copy of a KeyPgLongintLongInt 
		variable stored in it.
	str
		A KeyPgStringString at least eight bytes in length with a binary copy of a 
		KeyPgLongintLongInt variable stored in it.

Return Value
		A KeyPgLongintLongInt variable holding a binary copy of the input variable.

Description
	Returns a 64-bit KeyPgLongintLongInt value using the binary data contained in a 
	KeyPgDoubleDouble, or a KeyPgStringString of at least eight bytes in length.  A value of zero 
	(0) is returned if the string is less than eight bytes in length.

	CVLongInt is used to convert 8-byte strings created with KeyPgMklongintMKLongInt.

	This function can also be used to convert 64-bit integer values from a 
	memory or file buffer without the need for a KeyPgTypeType structure.  However, 
	just as with the type structure, special care should be taken when using 
	CVLongInt to convert strings that have been read from a buffer.

Example
	Dim ll As LongInt, s As String
	s = "ABCDEFGH"
	ll = CVLongInt(s)
	Print Using "s = ""&"""; s
	Print Using "ll = _&H&"; Hex(ll)

Differences from QB
	* In QB an error occurs if the string passed is less than eight bytes 
	  in length.
	* QB did not support floating-point arguments.

See also
	* KeyPgMklongintMKLongInt
	* KeyPgCvshortCVShort
	* KeyPgCviCVI
	* KeyPgCvlCVL

