accept a string & display whether a is present or not

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

13545


How to make sure that items in a wintree are sorted al?

2583


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2407


Explain about tristate constants in vbscript?

844


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

2084


Differentiate javascript and vbscript?

787


How to delete a cookie using vbscript?

825


Mention the rules for using option explicit statement?

718


Illustrate briefly about the different types of statement

2261


what is the object hyrarchy in QTP for a web based application

2118


How to take whole text output from screen of Bitmap Application.

2101


What is event handling in vbscript?

833


Explain about tristate constants?

789


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

2055


what is the features of visual basic?

1785