Method: GatherDigits
|
Function: |
Gather digits from the line. |
|
|
Parameters: |
digitsCount:
terminatDigit: The digit which will clear all the gathered digits and restart gathering.
SpecialDigits:
firstDigitTimeOut:
interDigitTimeOut:
|
|
| Description: |
Each execution of GatherDigits will do one "gather". Once the GatherDigits event occurs, whether by termination or timeout, no further gathering is done. You must invoke the method again to collect more digits. |
|
| Dependencies: |
The Connected event should be TRUE before using this method. |
|
| Events Raised: |
GatherDigits is raised on timeout or termination. See GatherDigits event. |
|
Sample Code In Visual Basic:
'The following code shows how to begin gathering digits after a digit "1" has been detected
Sub VoiceAngel1_DigitDetected(LineIndex as integer ,sDigit as String )
VoiceAngel1.CurrentLineIndex = LineIndex
if sDigit="1" then
VoiceAngel1.GatherDigits 4 ,"#","","","",6000,4000 ,50000
VoiceAngel1.OpenWaveFile "Prompt.wav"
VoiceAngel1.StartPlaying 0,false
end if
End sub