VoiceGuide IVR Software Main Page
Jump to content

Vbscript Variables

Recommended Posts

Is it possible for a variable once defined in a module Vbscript such as

strPhoneNumber=2341235341534

being available in all the modules of the current vgs script

 

sort of like

 

RV[strPhoneNumber]=strPhoneNumber

 

alternatively the following connection script works in the VBScript modules - so can someone tell me the correct nomenclature to use in the Database query models

 

Set cn = CreateObject("ADODB.Connection")

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\main\works\bases\products.mdb;Jet OLEDB:Database Password=mypassword"

set rs = CreateObject("ADODB.recordset")

SQL etc

 

regards all

Share this post


Link to post
Is it possible for a variable once defined in a module Vbscript such as

strPhoneNumber=2341235341534

being available in all the modules of the current vgs script

Yes, just save the information you want to use in future modules in a Result Variable, and then use that RV in future modules.

See:

http://www.voiceguide.com/vghelp/html/com_RvSet.htm

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

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

 

Script_Goto, Script_Gsub, and Script_Return COM functions also allow you to set RVs, as does the Evaluate Expression module...

 

can someone tell me the correct nomenclature to use in the Database query models

Set the Database field to be:

 

\\main\works\bases\products.mdb

 

and for Connect string specify:

 

";pwd=mypassword

 

(notice the ";" at the beginning)

Share this post


Link to post

0 cl RvSet Status, LevelOne

0 ERROR: COM interface not supported in this version.

 

 

????????? Version of what

nothing ever appears simple with this program, does this mean that I have to fork out more money just to carry someones status as level one through the modules

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
×