VoiceGuide IVR Software Main Page
Jump to content

Pro Or Enterprise For Vbscripts?

Recommended Posts

I have a VBScript that returns "success" or "fail" to the VG script...do I need Enterprise version to do this?

Share this post


Link to post

My VBScript is only checking to see if a file exists...If Enterprise version is required to do this with VBS, is there another way to do it?

Share this post


Link to post

From VoiceGuide help file:

 

Example 9:

The VB Script below demonstrates how the $RV_DEVICEID Result Variable is used to generate a Result file from which the data is read back into VoiceGuide. Please note that using the COM function Run_ResultReturn() is a preferable way of returning information to VoiceGuide (it's faster) - but a result file can be used if there is no other way.

 

Dim iIndexDow, iIndexNasdaq, iIndexSP500

 

'Do some work here to retrieve the data and initialize

'the iIndexDow, iIndexNasdaq and iIndexSP500 variables

 

strResultVariables= "[indexDow]{" & iIndexDow & "}" & _

"[indexNasdaq]{" & iIndexNasdaq & "}" & _

"[indexSP500]{" & iIndexSP500 & "}"

 

iRet = WriteResultFile(strResultVariables)

 

Function WriteResultFile(strResult)

  Const ForReading=1, ForWriting=2, ForAppending=8

  filename = "VGRUNRESULT_$RV_DEVICEID.TXT"

  Set fso = CreateObject("Scripting.FileSystemObject")

  Set ts = fso.OpenTextFile(filename, ForWriting, True)

  ts.WriteLine(strResult)

  ts.Close

  WriteResultFile=0

 

  'always deallocate after use...

  set ts = Nothing

  set fso = Nothing

end function

 

The above method can be used for returning results back to VG when the Pro version is used.

For more information on "Result Files" please see the "Run Program Module" section of VG help file. Online copy of this page can be found here: http://www.voiceguide.com/vghelp/html/modR...dRunProgram.htm

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
×