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 |
Hi, can any one tell this Actually I AM NEW TO QTP I have one qtp script in which it calls the vbs file during it's run TIME by using the ExecuteFile "absolute path" If the vbs file is executed seperately it will give the output in a msgbox In the same way if qtp script is executed the result will be displayed in w result window right? Now the question is how to get that vbs file output in the qtp result window when I run the qtp script which calls the vbsfile during it's run TIME
how to check whether link is disabled in QTP??
Explain about tristate constants?
1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?
What is the scope of a constant declared using public?
What is the use of the date function in the vbscript language?
* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?
can u test the application without add-in?
In html file what is an ideal position to include vbscript?
What is the use of option explicit statement?
What are class variables?
What are the rules to name variable in vbscript?