accept a string & display whether a is present or not



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

Post New Answer

More VB Script Interview Questions

If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

0 Answers  


How to add actions in driver script to run those actions in QTP?

0 Answers  


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

0 Answers  


write a vb script to rename a folder from tree4 to tree7

3 Answers  


give me an ex. of unoverloaded method?

2 Answers   Misys,


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

0 Answers  


* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?

2 Answers  


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

0 Answers  


Write a program to resize an array of 5 elements to 4 elements and display all the elements.

1 Answers  


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

0 Answers  


What is the use of the recordset object and which statement is used to create such an object?

0 Answers  


Explain a few date functions in vbscript

0 Answers  


Categories