{}, Byte{}, SByte{}, Word{}, Int{}, Long{}, Large{}, Single{}, Double{}, Short{}, Card{}, UShort{}, Uword{}, Cur{}, Char{} Functions

Purpose

Reads a value from an address.

Syntax

int = { address }

byte = Byte{ address }

int = SByte{ address }

word = Word{ address }

integer = Int{ address }

long = Long{ address }

large = Large{ address }

single = Single{ address }

double = Double{ address }

short = Short{ address }

card = Card{ address}

card = Ushort{ address}

card = Uword{ address }

currency = Cur{ address }

string = Char{address}

address:address

Description

Reads the specified data type from address.

Example

OpenW # 1

Dim a As Double = 1.2345, x%, i%

Print Hex$({*a}, 8)``Hex$({*a + 4}, 8)

Print

For i% = 0 To 7

Print Hex$(Peek(*a + i%), 2);

Next i%

Print : Print a

Prints first 126E978D 3FF3C083, which is the internal representation of variable a as a long word and then 8D976E1283C0F33F, which is the internal representation of a read in as bytes.

See Also

CharW, Peek() Functions, PokeProcess Functions.

{Created by Sjouke Hamstra; Last updated: 24/08/2021 by James Gaite}