VoiceGuide IVR Software Main Page
Jump to content

Important Vg Empty Db Query Variable

Recommended Posts

Hi,

 

Is it possible to empty or unset or delete a DB query variable?

Scenario:

1. I query database with DB module (module name is rs)

2. a result count is i.e. 4, $RV[rs_RowCount]

3. $RV[rs_x_1] to $RV[rs_x_4] are set

4. I query DB again with the same module

5. this time the result count is let's say 3, $RV[rs_RowCount]

6. $RV[rs_x_1] to $RV[rs_x_3] are set with new values, but $RV[rs_x_4] still stores the old

 

I need a clean or brand new rs each time DB is queried.

 

Best regards

Dominik

Share this post


Link to post

Will

 

set vg = CreateObject("VoiceGuide.CommandLink")

vg.RvSet $RV_LINEID, "rs", ""

set vg = Nothing

 

empty all the results as well ? ($RV[rs_1_1] and so on?)

Dominik

Share this post


Link to post

RVs are never 'deleted' - once set they exist for the length of the call, but may be overwritten with new values.

 

To see how many rows the latest Database query returns you can use $RV[ModuleTitle_RowCount]

Share this post


Link to post

Sek blank, OK.

 

What about query result variable?

How can I set it blank?

 

 

Dominik

Share this post


Link to post

If you want to clear the query result variable hen you can just set them to be a blank in the same way... (using the Eval Expr module or using multiple RvSet COM function calls)

 

But why do need to set them to a blank? To see how many rows the latest Database query returns you can use $RV[ModuleTitle_RowCount] ..

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
×