Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7110
Chapter 2 Program Instructions
GETASSOCNAME$
Field of Application
Function for traversing the tuples of a string association.
Syntax GETASSOCNAME$(<sexp>,<nexp>)
<sexp> is the association to be traversed (case-sensitive).
<nexp> speci es the tuple in the association.
<nvar> = 0 speci es rst tuple.
<nvar> 0 speci es next tuple.
Remarks
An association is an array of tuples, where each tuple consists of a name
and a value. To get the rst position in the string association, <nvar> should
be zero. Consecutive calls to GETASSOCNAME$ witn <nvar> non zero
will traverse all variables in an unde ned order. When a blank string ("") is
returned, the last variable has been traversed.
Example
This example shows how QARRAY" is travered (run example from
GETASSOC rst):
10 LVAL$=GETASSOCNAME$("QARRAY",0)
20 WHILE LVAL$<>""
30 RVAL$=GETASSOC$("QARRAY",LVAL$)
40 PRINT LVAL$;"=";RVAL$
50 LVAL$=GETASSOCNAME$("QARRAY",1)
60 WEND
RUN
yields:
label=321
desc=DEF
time=153355