VoiceGuide IVR Software Main Page
Jump to content

Jumping From Vbs Node

Recommended Posts

Hi!

I am using a vbs node to switch between some options in order to jump one or another node:

 

Dim opcion

set vg = CreateObject("VoiceGuide.CommandLink")

 

select case $RV[AVM_EspecialidadMenu]

case "1"

opcion = "Traumatología"

case "2"

opcion = "Digestivo"

end select

 

vg.RvSet $RV_LINEID, "AVM_Especialidad", opcion

set vg = Nothing

 

in this point, i would like the script jump to 8 different nodes depending the value of case $RV[AVM_EspecialidadMenu], like in pseudocode:

 

select case $RV[AVM_EspecialidadMenu]

case "1"

opcion = "Traumatologia"

<jump PPTraumatologia Node>

case "2"

opcion = "Digestivo"

<jump PPDigestivo Node>

end select

 

 

Is there any function of "VoiceGuide.CommandLink" object to jump (goto) to other node, or something like that?

 

Thanks in advance!!

Share this post


Link to post

Yes! See the Script_Goto and Script_Gosub COM functions.

Online copies of relevant VG Help file pages:

http://www.voiceguide.com/vghelp/html/com_...Script_Goto.htm

http://www.voiceguide.com/vghelp/html/com_...cript_Gosub.htm

 

This exact method of jumping to different parts of script from within the VBScript itself is used a lot in the VoiceGuide's voicemail system scripts - see scripts in VG's \system\vm\ subdirectory.

Share this post


Link to post

Ok. I have one more question: if i just want to jump to one node into my script (i do not want another instance of my script), can i use script_goto?

That is:

my script is called myscript.vgs and i want to jump a node called 'AV_Menu' into myscrip from myscript as well; if i use script_goto, is a new instance created for this COM function? or just jump to node?

 

thanks in advance!

Share this post


Link to post

To 'goto' to a new node in the same script just leave the sDestScript parameter blank.

 

No new instances etc are created. Its just a immediate jump to another node in the script.

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
×