Script_Gosub

Call a VoiceGuide subscript, specifying the script filename and start module. Specify which script and module should be ran once the subscript returns.

Syntax

object.Script_Gosub iLineId, sDestScript, sDestModule, sRvList, sReturnScript, sReturnModule

Part

Description

object

VoiceGuide object

iLineId

Identification number of the line

sDestScript

The filename of the VoiceGuide script where the subscript is located. If the subscript is in the same VoiceGuide script as the calling module then this entry can be left blank.

sDestModule

Name of the starting module.

sRvList

List of Result Variables and their values. Each RV-Value pair is in format [Name]{Value} a number of RV-Value pairs can be specified one after another.

sReturnScript

The filename of the VoiceGuide script where the system should return to after finishing the subscript. If the subscript is in the same VoiceGuide script as the calling module then this entry can be left blank.

sReturnModule

Name of the return module.

Notes

If the module names are blank then the default starting modules in the script are used.

When used in the Run VBScript modules: the jump to next module is made immediately when Script_Gosub is called, so Script_Gosub usually should be the last function in the script (before 'set vg = Nothing')

 

Example 1

set vg = CreateObject("vgServices.CommandLink")
'Gosub to a new script and return to module VmMmMenuPlay in the current script
vg.Script_Gosub $RV_LINEID, "vmAdmin.vgs", "", "", "", ""
set vg = Nothing

 

Example 2

set vg = CreateObject("vgServices.CommandLink")
'Gosub to a new scriopt and return to module VmMmMenuPlay in the current script
vg.Script_Gosub $RV_LINEID, "vmAdmin.vgs", "VmAdminWelcMsgMenuPlay", "", "", "VmMmMenuPlay"
set vg = Nothing

 

VoiceGuide

© Katalina Technologies Pty. Ltd.