< Futurebasic < Language < Reference

Syntax

byteValue` = Peek [Byte]
shortIntValue% = Peek Word
longValue& = Peek Long

Shorthand syntax:
byteValue`
shortIntValue%
longValue

Description

The Peek functions look at the 1, 2 or 4 bytes of data which begin at address&, and return them as a byte integer, short integer or long integer value, respectively. The address& should be a long integer expression, or a Pointer or Handle variable. The value returned by a Peek function will be interpreted either as a signed or unsigned value, depending on what type of variable itÕs assigned to. If the value is not assigned to any variable, itÕs usually interpreted as a signed value.

See Also

Poke; VarPtr

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.