wordarray(
DATA
,
INDEX
)

The wordarray( function extracts a value from an array of 16 bit words (see Binary Data).


Parameters

This function has two parameters:

data – binary data containing one or more word (16-bit) values. See Binary Data for more information on this type of data.

index – position of the desired word, starting from 1.


Description

This function extracts a value from an array of words. This is not a Panorama style delimited array but a C style array of 16 bit values. The result is an integer.

wordarray(word(3)+word(12)+word(87),2) ☞ 12

See Binary Data for more information about this type of data.

Note: This function is equivalent to:

binaryvalue((thetext)[1+(index-1)*2;2])

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but since Panorama can no longer treat text as binary data, this function now requires that the first parameter be a binary data value instead of a text value.