Revision [13914]

This is an old revision of KeyPgCvs made by LaananFisher on 2008-11-28 18:54:28.

 

CVS


Converts an four byte string to an single-precision variable

Syntax:
Usage:
result = Cvs( str )

Parameters:
str
A KeyPgString string exactly four bytes in length with a binary copy of an single-precision variable stored in it.

Return Value:
Returns a KeyPgSingle single variable to copy the binary copy of a single to.

Description:
Does a binary copy from a 4-byte-string to a KeyPgSingle Single variable. The result will have a sense only if the string contained a IEEE754 formated single value, as the one generated by KeyPgMks Mks.
This function is useful to read numeric values from buffers without using a KeyPgType Type definition.

Examples:
Dim a As Single, b As String
a=4534.4243
b=MKS(a)
Print a, CVS(b)
Sleep


Differences from QB:
See also:
Back to String Functions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode