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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Vba time checks

Status
Not open for further replies.

Pearlios

Programmer
Sep 3, 2012
24
AU
Hello all,

I'm looking for a way to convert the condition editor into vba code that can be placed in the vbascript action for voicemail pro.
Just finding it tedious without copy paste function.

Thanks
A rookie user.
 
You need to open the vmpro examples and you will see VBscripting there.


BAZINGA!

I'm not insane, my mother had me tested!

 
Yes, I did have a look, but can't get it to return a failed status.

I've tried to write

if Hour(Time) > 18 then
return(false)
voice.Result = false
end if

But it always seem to enter a success state.
 
I never worked woth VBscripting in VMPro but i think it is set for >18 hours.
Can't you use seconds for this?


BAZINGA!

I'm not insane, my mother had me tested!

 
Did you try the opposite?

if Hour(Time) < 18 then
return(true)
voice.Result = false
end if

A simple mind delivers great solutions
 
I tried several things today to try work out what the script is doing.

1. Just put in the code below which still returned a success state.

Voice.Result = false
return(false)

and

Voice.Result = Failure

2. Used a variable counter1 and tried to change that in the vb script area.

So One action before it has set the value of counter1 = 5
Within the code I wrote: set $counter1 = 10
A variable check on the other side to see if the value was 5

What happen was the counter variable remained at 5 because it played my success wav.

Weird. It seems the vbascript did not run. Do I need to configure something to enable it or something else?
 
Do you have a VMPro vbscript license on you IPO?


BAZINGA!

I'm not insane, my mother had me tested!

 
On my IPO it says I do have voice mail pro preferred edition but at the top it has advance edition.
 
With the advanced edition you should have the VB scripting license so that is OK.

BAZINGA!

I'm not insane, my mother had me tested!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top