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 |
Explain the constants in vbscript?
Write a program to resize an array of 5 elements to 4 elements and display all the elements.
What if you do not specify anything when you call a procedure?
Why is the use of exit do or exit for statements within loops discouraged?
Why is it recommended to close the database connection every time after the work is completed?
I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh
What is the difference between javascript and vbscript?
How to generate 3 digit random number?
What is Querystring collection?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
Which data type/types are supported by vbscript language and what are their specialties?
How to remove the spaces in a string Ex: "this is apple"