VoiceGuide IVR Software Main Page
Jump to content

End Of Statement Expected

Recommended Posts

This is my vb script:

Dim CaseLocation
CaseLocation = $RV[CheckLocationNumber_4_1]
CaseLocation = LCase(CheckLocation)
set vg = CreateObject("VoiceGuide.CommandLink")
vg.Run_ResultReturn $RV_LINEID, "[ALocation]{" & CaseLocation & "}"
set vg = Nothing

 

I keep getting a End of statement expected line 2 char:19

Any help would be appreciated.

Share this post


Link to post

If $RV[CheckLocationNumber_4_1 was not defined then you would get error.

 

To avoid getting error change this line to:

 

CaseLocation = "$RV[CheckLocationNumber_4_1]"

 

Also, I think the following line should be

 

CaseLocation = LCase(CaseLocation)

 

not

 

CaseLocation = LCase(CheckLocation)

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
×