Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

VARPTR

Returns a variable’s offset in memory.

Syntax

VARPTR(variable)

Comments

variable is the name of any variable in your program.

QBasic does not guarantee that a variable will reside in the same memory location throughout the program execution. Use VARPTR immediately before any code that uses the offset value.

Examples

See CALL ABSOLUTE.

See Also