Getassocname; Makeassoc - Intermec EasyCoder PF2i User Manual

Easylan interface
Hide thumbs Also See for EasyCoder PF2i:
Table of Contents

Advertisement

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>
<nexp> specifi es the tuple in the association.
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
> specifi es the name of the association to be created (case-
1
sensitive).
<sexp
> contains an argument list of parameter tuples according
2
to the convention in <sexp
EasyLAN User's Guide
is the association to be traversed (case-sensitive).
<nexp> = 0 specifi es fi rst tuple.
<nexp> ≠ 0 specifi es next tuple.
Chapter 6 — Advanced Confi guration
>.
3
83

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents