Micro Focus QTP (UFT) Forums
variable is undefined: wscript - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: variable is undefined: wscript (/Thread-variable-is-undefined-wscript)



variable is undefined: wscript - shipu - 01-08-2014

Hello,

I have the below code in qtp. When I run it, I get error at the last line : "variable is undefined: wscript"

PHP Code:
Dim pricevatnet 
 vat 
10 
 net 
30 
   
 price 
vat net 
   
 wscript
.echo price 


Please help.


RE: variable is undefined: wscript - basanth27 - 01-09-2014

I tried the same code and got 300 as the echo'ed message. Are you sure you are trying only this piece of code?
Wouldn't hurt if you have to check under system32 folder for wscript.exe?