Intermec 10I2 User Guide

Page of 121
EasyLAN User’s Guide 
83
Chapter 6 — Advanced Confi guration
Th
  e example yields the following when run:
time=UNKNOWN LABEL=321 DESCRIPTION=DEF
time=153355
GETASSOCNAME$
GETASSOCNAME$ is a function for traversing the tuples of a string 
association.
Syntax: 
GETASSOCNAME$(<sexp>,<nexp>)
<sexp>    
is the association to be traversed (case-sensitive). 
<nexp>  specifi es the tuple in the association. 
  <nexp> 
= 0 specifi es fi rst tuple.
  <nexp> 
≠ 0 specifi es next tuple.
An association is an array of tuples, where each tuple consists of a name 
and a value. To get the fi rst position in the string association, <nexp> 
should be zero. Consecutive calls to GETASSOCNAME$ witn <nexp> 
non zero will traverse all variables in an undefi ned order. When a blank 
string ("") is returned, the last variable has been traversed.
Th
  is example shows how “QARRAY" is traversed (run example from 
GETASSOC fi 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
Th
  e example yields the following when run:
label=321
desc=DEF
time=153355
MAKEASSOC
MAKEASSOC is used to create associations. 
Syntax: 
MAKEASSOC <sexp1>,<sexp2>,<sexp3>
<sexp
1
>   specifi es the name of the association to be created (case-   
sensitive).
<sexp
2
>   contains an argument list of parameter tuples according    
to the convention in <sexp
3
>.