VoiceGuide IVR Software Main Page
Jump to content

Vb Script Module

Recommended Posts

Hello,

I hire a coder to write attached vbs file. it's run very well but when I used it with VG it doesn't work at all. I just carious if attached file is a VBS code or VBA code.

if it is a VBA code, can VG run it?

 

thanks for your advice.

Farzad

 

Share this post


Link to post

Could you please .ZIP up the VoiceGuide script file (the .VGS file) in which this VBScript code is used (from within a Run VBScript module).

Share this post


Link to post

Could you also please post the vgEngine trace capturing the call. This will let us see what is happening on the system.

Share this post


Link to post

Hello,

Please find attached file the VG file and logs files. I use to run the vbs code.

thanks for your help.

Farzad

Share this post


Link to post

sorry, I forgot to push the upload button.

I upload successfully and is available from the 'Manage Current Attachments' menu

Thanks

Farzad

Log.zip

Share this post


Link to post

Trace shows that the VBScript module [FirstData] is started and the script is ran with no errors and the Run_ResultReturn function is called and returns "[FirstDataResult]{}" back to VoiceGuide.

 

So from VoiceGuide's point of view the script runs and completes with no errors and VoiceGuide then continues onto the next module.

 

Looks like your question is why the variable res in this statement towards the end of the vb script:

 

vg.Run_ResultReturn $RV_LINEID, "[FirstDataResult]{" + res +"}"

 

is empty.

 

We can see from the VBScript that the variable res is assigned a value returned by the LpiCom_6_0.LPOrderPart COM object, within the Sub firstdata(), but the Sub firstdata() is never called in the VBScript...

 

You should speak to the programmer as to why they are never calling the Sub firstdata()

 

Or you could try adding a line like this:

 

firstdata

 

just before:

 

vg.Run_ResultReturn $RV_LINEID, "[FirstDataResult]{" + res +"}"

 

the firstdata line will call the Sub firstdata() subroutine.

 

 

 

103429.63 1 state [FirstData] Running VB Script...

103429.63 1 rv replace start (strlen>1000)

103429.63 1 rvns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[$RV_STARTTIME]{08/05/2009 10:34:29}[$RV_DEVICEID]{1}[DlgcNetworkResource]{dxxxB1C1}[DlgcVoiceResource]{dxxxB1C1}

[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[scriptsPath]{C:\Documents and Settings\Administrator\My Documents\IVR softwares\First Data API\Fist Data API\}[scriptPath]{C:\Documents and Settings\Administrator\My Documents\IVR softwares\First Data API\Fist Data API\}[$RV_CIDNUMBER]{}

103429.64 1 vbs run [vbs_1_1.vbs], cmd [wscript "C:\Program Files\VoiceGuide\temp\vbs_1_1.vbs" //I //T:60]

103429.77 1 Run Script waiting. iRunWait=1 (shellid=2604, process=1668)

103429.77 1 timer set 1 EV_TIMEOUT_CHECKONSTATE

103430.16 1 cl Run_ResultReturn [[FirstDataResult]{}]

103430.16 1 rvns add [FirstDataResult]{}

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
×