Stores a 32-bit integer in a Register.
Dim name As Register Int
The register keyword specifies that the variable is to be stored in a machine register (either EDI or ESI). More than 2 register variable declarations per procedure are not allowed, and only 32-bit integer variables can be placed in a register.
Registers don't have memory addresses, so you cannot obtain the variable's location (VarPtr, V:). Also, register variables cannot be passed by reference (ByRef) to subs. In case of an error (Try-Catch, On Error GoTo Resume) the contents of the register variable is undefined.
Local a As Register Int
a = 13
Print a
// Print V:a -> throws an error
Boolean, Byte, Card, Short, Word, Int16, Long, Int, Integer, Int32, Register Int, Register Variables, Int64, Large, Single, Double, Currency, Date, Handle, String, Variant, Object
{Created by James Gaite; Last updated: 23/09/2021 by James Gaite}