Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Futurebasic/Language/Reference/xrefat

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

XREF@ Syntax XREF@ arrayName maxSub1 maxSub2 AS dataType Description XREF@ is identical to the XREF statement, except that the link variable is interpreted as a handle, rather than as a pointer. You should use XREF@ when you want the contents of a relocatable block to be treated as an array. Example The following declares an array called inclination!, allocates a new block with enough room for numElts& elements, and associates the inclination! array with the contents of the block. XREF@ inclination!(1) inclination& = FN NEWHANDLE(numElts& * SIZEOF(SINGLE) Notes Note that, because the value of maxSub1 is ignored in the XREF@ statement, we can arbitrarily set it to 1. However, when we actually reference the elements of the inclination! array, we can specify any subscript value in the range 0 through numElts&-1. See Also DIM; XREF