LabelAddr Function

Purpose

Returns the memory address of a label.

Syntax

a% = LabelAddr(name)

a%:iexp
name:label name

Description

With the function LabelAddr(name) you determine the address of a named label. The return is an Integer value.

A label can be number or alphanumeric name followed by a semicolon.

Example

OpenW 1

Print LabelAddr(test)

Print LabelAddr(5)

5            // numeric label (without :)

'

test:        // alphnumeric label (with :)

Remarks

The address of a label can be obtained for a label that is in scope. Labels can be used locally only.

See Also

ProcAddr, DisAsm

{Created by Sjouke Hamstra; Last updated: 11/10/2014 by James Gaite}