Revision history for KeyPgCvlongint


Revision [21999]

Last edited on 2017-11-21 01:10:57 by JeffMarshall [fix page link name case]
Additions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeyPgLongint|Longint]]## variable
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[KeyPgLongint|Longint]]## variable stored in it.
Deletions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeypgLongint|Longint]]## variable
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[keyPgLongint|Longint]]## variable stored in it.


Revision [21773]

Edited on 2017-06-29 13:48:28 by fxm [Correcting a typing error in the example]
Additions:
ll = cvlongint(s)
Deletions:
ll = cvlongint(ll)


Revision [20875]

Edited on 2016-03-12 16:16:57 by fxm [Formatting]
Additions:



Revision [20122]

Edited on 2016-02-10 15:56:33 by DkLwikki [Update link format]
Additions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeypgLongint|Longint]]## variable
[[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]]
A ##[[KeyPgDouble|Double]]## floating-point number with a binary copy of a ##[[keyPgLongint|Longint]]## variable stored in it.
A ##[[KeyPgString|String]]## at least eight bytes in length with a binary copy of a ##[[KeyPgLongint|Longint]]## variable stored in it.
A ##[[KeyPgLongint|Longint]]## variable holding a binary copy of the input variable.
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.
- ##[[KeyPgMklongint|Mklongint]]##
- ##[[KeyPgCvshort|Cvshort]]##
- ##[[KeyPgCvi|Cvi]]##
- ##[[KeyPgCvl|Cvl]]##
Deletions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeypgLongint Longint]]## variable
[[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]]
A ##[[KeyPgDouble Double]]## floating-point number with a binary copy of a ##[[keyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgString String]]## at least eight bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgLongint Longint]]## variable holding a binary copy of the input variable.
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.
- ##[[KeyPgMklongint Mklongint]]##
- ##[[KeyPgCvshort Cvshort]]##
- ##[[KeyPgCvi Cvi]]##
- ##[[KeyPgCvl Cvl]]##


Revision [16812]

Edited on 2013-05-19 23:23:53 by CountingPine [four -> eight]
Additions:
A ##[[KeyPgString String]]## at least eight bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
- In QB an error occurs if the string passed is less than eight bytes in length.
Deletions:
A ##[[KeyPgString String]]## at least four bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
- In QB an error occurs if the string passed is less than four bytes in length.


Revision [16548]

Edited on 2013-01-22 23:38:22 by CountingPine [Use function in example]
Additions:
s = "ABCDEFGH"
ll = cvlongint(ll)
Deletions:
ll = &H4847464544434241
s = mklongint(ll)


Revision [16538]

Edited on 2013-01-22 15:52:00 by CountingPine [Proper See Also links]
Additions:
- ##[[KeyPgMklongint Mklongint]]##
- ##[[KeyPgCvl Cvl]]##
Deletions:
- ##[[KeyPgMkl Mkl]]##
- ##[[KeyPgCvlongint Cvlongint]]##


Revision [16537]

Edited on 2013-01-22 15:49:48 by CountingPine [More inline with CVI]
Additions:
Converts a double-precision floating-point number or eight-byte string to a ##[[KeypgLongint Longint]]## variable
[[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]]
//result// = **Cvlongint**( //dbl// )
##//dbl//##
A ##[[KeyPgDouble Double]]## floating-point number with a binary copy of a ##[[keyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgString String]]## at least four bytes in length with a binary copy of a ##[[KeyPgLongint Longint]]## variable stored in it.
A ##[[KeyPgLongint Longint]]## variable holding a binary copy of the input variable.
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.
dim ll as longint, s as string
ll = &H4847464544434241
s = mklongint(ll)
print using "ll = _&H&"; hex(ll)
print using "s = ""&"""; s
- In QB an error occurs if the string passed is less than four bytes in length.
- QB did not support floating-point arguments.
- ##[[KeyPgMkl Mkl]]##
- ##[[KeyPgCvshort Cvshort]]##
- ##[[KeyPgCvi Cvi]]##
- ##[[KeyPgCvlongint Cvlongint]]##
Deletions:
Converts an eight byte string to a long integer variable
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
A [[KeyPgString string]] exactly eight bytes in length with a binary copy of a long integer variable stored in it.
A [[KeyPgLongint longint]] variable to copy the binary copy of a long integer to.
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 ##[[KeyPgMklongint Mklongint]]##
This function is useful to read numeric values from buffers without using a ##[[KeyPgType Type]]## definition.
dim a as longint, b as string
a=4534
b=mklongint(a)
print a, cvlongint(b)
sleep
{{fbdoc item="lang"}}
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Cvlongint""**##.
- New to ""FreeBASIC""
- ##[[KeyPgMklongint Mklongint]]##


Revision [15837]

Edited on 2012-01-25 11:41:05 by CountingPine [Duplicated "diff" section]

No Differences

Revision [14292]

Edited on 2009-08-29 21:52:17 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC""
- New to ""FreeBASIC""
Deletions:
- New to FreeBASIC
- New to FreeBASIC


Revision [13945]

Edited on 2008-11-30 07:38:11 by JeffMarshall [name case fixup]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]


Revision [13913]

Edited on 2008-11-28 18:54:12 by LaananFisher [Fixed: const-correctness]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Cvlongint** ( [[KeyPgByref byref]] //str// [[KeyPgAs as]] [[KeyPgString string]] ) [[KeyPgAs as]] [[KeyPgLongint longint]]


Revision [13111]

The oldest known version of this page was created on 2008-04-24 15:41:08 by JeffMarshall [Fixed: const-correctness]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode