VoiceGuide IVR Software Main Page
Jump to content

Vb Script Case Statement

Recommended Posts

Hi,

 

When I use this Case statement form, VG give me error

'------------------------------

my_number = 10

Select Case my_number

Case 1 to 10 : do something

End Select

'------------------------------

 

when I use this Form it's working

'------------------------------

my_number = 10

Select Case my_number

Case 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 : do something

End Select

'------------------------------

 

but the second one is long

Share this post


Link to post

You should confirm if the first attempt is valid VBScript syntax.

You can test VBSscripts outside VoiceGuide by just saving them in a .vbs file and double clicking on that file. Windows itself will then try to run a VBScript.

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
×