plz give ans to this in vb script........

"krishna radha"
i want to print this string
"Radha Krishna" like this

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?

538


Explain sga memory structures?

583


What is the use of the date function in the vbscript language?

569


Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?

1554


How can you destroy an object in vbscript?

642






How to take whole text output from screen of Bitmap Application.

1873


1. How do declare public variable in vb scripts?

1579


What is the purpose of folders object of scripting.filesystemobject class in vbscript?

873


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3277


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2500


What is the scope of a constant declared using public?

567


How to throw an error in vbscript?

610


Why to use option explicit in vb script?

602


What are the advantages of vbscript?

648


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1812