plz give ans to this in vb script........
"krishna radha"
i want to print this string
"Radha Krishna" like this
Answers were Sorted based on User's Feedback
Answer / ddpras
str="krishna radha"
A=Split(str," ")
Fstring=A(0)
Lstring=A(1)
sLString=replace(Lstring,"r","R")
sFString=replace(Fstring,"k","K")
Rstring=sLString&" "&sFString
MsgBox Rstring
The above VB Script is exact ans for this question.
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / lak
str="krishna radha"
a=left(str,7)
c=Replace(a,"k","K")
b=right(str,5)
d=Replace(b,"r","R")
msgbox d&" "&c
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / prathyusha
s="krishna radha"
words=split(s)
For i = 0 To ubound(words)
arr=words(i)
fword= left(ucase(arr),1)
lword=right(lcase(arr),len(arr)-1)
word=fword&lword
str=word&" "&str
Next
msgbox str
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chinna
hello friend u carefully see the question first ok
i need to print first letter capital letter for every word
ok
| Is This Answer Correct ? | 1 Yes | 2 No |
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
filter the array values without using filter function?
Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)
i created script for login in QTP,i parametirized that using global sheet,problem i am facing is first i want to login with first values provided in excelsheet and want to perform some operation,second time if call same action it should login with second values in excelsheet
* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?
What are the different types of operators and their order of precedence?
Here in my automation tool, i am retreiving some values and i need to store this values in the excel. How can i achieve this?. We are using VBA as scripting language. please let me know if you require any further inputs.
how to operate webobjects in a webpage using getobject function and then using generic methods?
Explain about .wsf files?
How to create pull down menu box using vb script
What is a class in CSS?
give me an ex. of unoverloaded method?