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 |
What is the extension of the vbscript file?
What are the different types of loops available in the vbscript language?
Explain the asc function?
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
What are the valid scopes of a variable in vbscript?
What is the use of the instr function?
what is diff between static and dynaic arrys?
How to get 120 using 5 zeroes, you can use any operator(+, *, /...) in qtp.
How do i automate a website www.flyashx.com without having any test cases witin a week time.
print the array values in ascending order?
what is the use of Data base check point ?
Consider there are objects in a webapp which are identified by QTP. Suppose you know only the logical name of a object(absolutely nothing else about it). Which approach will you take to find the "micClass" of the object(You can't use Object Spy, or can't add the object in repository)?