Answer Posted / harry
hi,
when you declare varible you use option Explicit as a
first line of your script .
ex
DIM name
if you do any spelling mistake like nime instead of name
then vb will take this as an new verible and endup giving
unpredictable result while runing.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the asc function?
Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble
What are string functions in vbscript?
How will you get a subset of a array in vbscript?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
How will you release the memory acquired by an array variable in vbscript?
When does ‘on click of button’ event gets triggered in the vbscript language?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
What is loose binding? Why is it not a good practice to use it?
Mention what is the difference between vbscript and vba?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
What is the purpose of on error resume next statement?
When are redim statement and preserve keyword used in the vbscript language?
What purpose does ‘on error resume next’ serves?
Explain about tristate constants in vbscript?