VoiceGuide IVR Software Main Page
Jump to content

variable from variable

Recommended Posts


we use string with variables to connect with webservice

We get data from database and variable from database has structure like: $RV[database_dataname] and we get string like bellow:


and we need to save this into other variable like: $RV[webservice_path]

but VG in this case save with actual variable available in script like:




how to copy string with variables to other variable?

Each time VG changing variable to value in evaluation module.


Share this post

Link to post

So you would like to create a $RV that in its value has $RV expressions themselves, without them being replaced with the current values.

One approach that could work here is to have the database return a string that instead of "$RV" has some other placeholder, eg: "XXX". So the string returned from database is:


and then in an Evaluate Expression module us the Replace function and save the outcome to $RV[webservice_path]

The Replace function call would look like this:

Replace($RV[database_dataname], "XXX", "$RV")

Please note that the above approach has not been tested.

If the above results in $RV[webservice_path] still having the values of individual $RVs then you could just use $RV[database_dataname] to generate a new $RV[webservice_path] with the current values when needed.


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