Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Pointers >

SetAT

Previous pageReturn to chapter overviewNext page

 

Description

 

Set a new absolute memory address to a variable previously declared with AT Address option.

 

Syntax

 

OldAbsoluteAddress = SetAT(VariableName, AbsoluteAddress)

 

Returns

 

Number, the previously absolute address.

 

Parameters

 

Name

Type

Optional

Meaning

VariableName

Any

No

Name of the variable you want the absolute address.

AbsoluteAddress

Numeric

No

The new absolute memory address

 

Remarks

 

Attention: this function will return and set a new valid address only if the specified variable was DIMensioned using AT Address option.

 

Restrictions

 

See also

 

DIM, GetAT, STRPTR, VARPTR, POKE$, POKE, PEEK$, PEEK

 

Examples