VoiceGuide IVR Software Main Page
Jump to content

What Is Wrong With This Sample Vb Code

Recommended Posts

im using this sample code from the help file:

 

==========================================

 

set vg = CreateObject("VoiceGuide.CommandLink")

iLen = Len("$RV_ENTEREDNUMBER")

If iLen<1 or iLen>2 Then

sResult = "verify_failed"

Else

sResult = "verify_passed"

end If

vg.Run_ResultReturn $RV_LINEID, sResult

set vg = Nothing

 

==========================================

 

i want to check it the entered number is 1 or 2

but the script always send verify_passed for any enterd nmber.

Share this post


Link to post

Is this the 'verify' script used in a Get Numbers module?

 

Could you please post a copy of VoiceGuide's Debug Printout which captures the problem, this will allow us to see what is going wrong.

 

When running the script click on VoiceGuide's View menu and select 'Event Trace Log' option - any log information will then appear in this window. You must open the trace window before making the call.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×