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

What are the uses of vb script?

805


How will you get a combined string from array of string in vbscript?

738


How you can call vbscript functions?

785


Explain different types of segment?

788


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1629


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

807


How to write functions and sub in vb script?

814


Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

1930


How can you create an object in vbscript?

834


Is vbscript language a case-sensitive language and what does it mean?

766


What is byref and byval parameters in vbscript?

818


Mention what is the main difference between function and sub-procedure?

760


What methods are used to create text files and open text files in the vbscript language?

747


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

705


Explain about tristate constants in vbscript?

828