Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VoiceMail Pro VBScript Edit $KEY value

Status
Not open for further replies.

martinnystrom

Programmer
Sep 10, 2013
56
SE
Hello, I am in the work of validating a value submited by the caller in a previous menu. I have saved it as $KEY.
How can I change this value inside a vbscript action? Simply saying $KEY = 0 does not work.

$KEY = 0

Returns:
Expected statement
Line:9, Char: 2

There is no need to post my entire code because I do only want to know how I can change this value and send it on through my VMPro callflow.
 
I do not believe $KEY is an editable variable, it simply represents the last dtmf digits a user has entered. You would need to store $key as a copy point, $cp0-$cp15. Those variables are editable, and unique to the caller. I would love to know what you've written with the vbscript, it rarely sees the light of day.

-Austin
ACE: Implement IP Office
qrcode.png
 
HEre is the code, I changed the $KEY to $CP0. However, the question remains of how I edit it if my if-statement run the else statement.

Code:
Dim personNummer
Dim personLength
personNummer = $CP0
personLength = Len($CP0)

if personLength = 12 Then
	return true
else
	
end if
 
My vbscript is a little rusty; what exactly are you trying to accomplish with this script?

-Austin
ACE: Implement IP Office
qrcode.png
 
& why would you want to change $ key anyway? why as for user input if you are going to change it?

A Maintenance contract is essential, not a Luxury.
Do things on the cheap & it will cost you dear
 
Why use VB at all. A Generic action can get the length of a value - for example STRING:$CP1=length($KEY). Then use a Test Variable action on $CP1.

Stuck in a never ending cycle of file copying.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top