Toshiba Stratagy IVP8 Installation And Maintenance Manual page 173

Voice processing systems
Hide thumbs Also See for Stratagy IVP8:
Table of Contents

Advertisement

Table 7-3
Defined Tokens (continued)
Token
Search for value—the V( ) token searches the specified file, in the specified field, for the value given
by item. If Stratagy finds the value, it stores the contents of the second field into variable %Sn. If
Stratagy does not find the value, the token terminates and returns to the Done state.
If file ends with .DBF, Stratagy assumes it is in dBase format. Stratagy assumes field names instead
of field numbers and invokes dBase file processing (including record locking, if specified). Otherwise,
Stratagy 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 Stratagy retrieves them.
Syntax
where:
file
dBase file (.DBF) or ASCII file with columns separated by commas (comma delimited). Valid
DOS file name. Can be a variable.
field
dBase file field name or 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).
V( )
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.
Waits 2 seconds (20 ÷ 10 = 2) for DTMF after playing the greeting.
20
@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."
Stratagy I&M
06/02
V(file,field,item,field,%Sn[,field,%Sn...])
Description
Token Programming
Defined Tokens
7-17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stratagy flashSg-f-2Sg-f-4

Table of Contents