accept a string & display whether a is present or not
Answer / mudaseer
vstr=lcase(inputbox("string plz"))
if instr(vstr,"a")>0 then
msgbox "present"
else
msgbox "absent"
end if
| Is This Answer Correct ? | 0 Yes | 0 No |
Which operator can be used to change the value of the operand or change the state of the condition?
int a=4857 i need output as 7584.without using any inbuild function?
how to retrieve native property value in runtime?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
How to load vbs functions in qtp
Which operator can be used to check if two numbers are equal or not in vbscript?
Mention what is the difference between vbscript and vba?
How to assign a numeric value to a variable?
How will you get a subset of a array in vbscript?
can any body give the code to write the function for given suppose user login with usrer id and pwd to yahoomail.after cliking "sign in"if it is valid user id the next page will display userid'message box.( Note u have to use excel sheet to retrive the userid's data)
Explain a few date functions in vbscript
I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30