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

please help with VMpro vbscripting 1

Status
Not open for further replies.

Belrick

Technical User
Sep 7, 2005
101
NZ
I need to do a basic vbscript.

That is restrict an amount stored in a variable.

In vbscript i would write

If $CP4 > 10 Then
$CP4 = 10
End if


But this doesnt work in vmpro. I tried to use some of the provided methods but failed in that as well.

Can anyone provide the solution?

Cheers.
 
Do you have a license for the vbscripting? It requires advanced edition.

Also, I would probably use a compare condition to make it simple.

-Austin
ACE: Implement IP Office
 
Cheers

I suspect now that youre right.

ps: yes advanced edition.

Cheers.
 
You don't need a vbscript licence for that, explain more what you like to accomplish.

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged (Avaya Search tool )
______________________________________
 
Sure

I have a DB that is propagated by caller leaving details.

One of them is kilometres travelled.

Need to restrict the amount of kilometres travelled to being no greater than 10.
 
No, he doesn't need vb script to do that function; however vb scripting needs a license if he chooses to use it.

I would create a COMPARE condition.
Value A: $KEY
IS >
Value B: 10

Use a test condition to test it.

If its true, set $CP0 to 10 and store it.
If its false, set $CP0 to $KEY and store it.

Or whatever.





-Austin
ACE: Implement IP Office
 
Thankyou for all your help.

I had long forgotten about the compare feature of the condition editor.

Using it i got exactly the result i needed.

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top