Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7162
Chapter 2 Program Instructions
MAKEASSOC
Field of Application
Statement for creating an association.
Syntax MAKEASSOC <sexp
1
>, <sexp
2
>, <sexp
3
>
<sexp
1
> specifies 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
>.
<sexp
3
> should always be "HTTP" (case sensitive).
Remarks
HTTP implies that the argument list in <sexp
2
> is encoded in x-www-
url-encoding.
Example
This example shows how a string, including three stringnames associated
with three start values, will be de ned and one of them (time) will
be changed:
10 QUERYSTRING$ =
"time=UNKNOWN&label=321&desc=DEF"
20 MAKEASSOC "QARRAY", QUERYSTRING$, "HTTP"
30 QTIME$ = GETASSOC$("QARRAY", "time")
40 QLABELS% = VAL(GETASSOC$("QARRAY", "label"))
50 QDESC$ = GETASSOC$("QARRAY", "desc")
60 PRINT "time=";QTIME$, "LABEL=";QLABELS%,
"DESCRIPTION=";QDESC$
70 SETASSOC "QARRAY", "time", time$
80 PRINT "time="; GETASSOC$("QARRAY", "time")
RUN
yields:
time=UNKNOWN LABEL=321 DESCRIP TION=DEF
time=153355