
Token Programming
Defined Tokens
5-16
Strata CIX40 Voice Processing Programming Manual 7/06
V( )
Search for value—the
V( )
token searches the specified
file
, in the specified
field
, for the value given
by
item
. If voice processing finds the value, it stores the contents of the second field into variable
%Sn. If voice processing does not find the value, the token terminates and returns to the
Done
state.
If
file
ends with .DBF, voice processing assumes that it is the name of an ASCII file with columns
separated by commas.
There may be several pairs of
fields
and %Sn values, and voice processing retrieves them.
Syntax
V(file,field,item,field,%Sn[,field,%Sn...])
where:
file
ASCII file with columns separated by commas (comma delimited). Valid DOS file name. Can
be a variable.
field
ASCII file column number. (1 is the value of the field before the comma.) Can be a variable.
item
An alphanumeric string. Can contain %S variables.
%Sn
One of the %S storage variables (range: 0~19).
Examples
A caller enters his customer number to hear his credit line:
@R(G1,%S1,20)
G1
Plays greeting 1: “Please enter your customer number.”
%S1
Stores the caller’s entry in variable %S1.
20
Waits 2 seconds (20
÷
10 = 2) for DTMF after playing the greeting.
@V(credit.doc,1,%S1,2,%S2)
•
Searches CREDIT.DOC for customer number %S1 in field 1.
•
Stores the contents of field 2 in variable %S2.
P(G2)P(%S2,$)
P(G2)
Plays Greeting 2: “Your credit line is ”
P(%S2,$)
Says the value stored in %S2 as a dollar amount: “five thousand dollars.”
Note
Maximum of 1 custom-made file is taken as 4kbyte.
Table 5-3
Defined Tokens
(continued)
Token
Description
Summary of Contents for Strata CIX GVPH
Page 10: ...This page is intentionally left blank ...
Page 102: ...This page is intentionally left blank ...
Page 122: ...This page is intentionally left blank ...
Page 144: ...This page is intentionally left blank ...
Page 152: ...This page is intentionally left blank ...