Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



plz give ans to this in vb script........ "krishna radha" i want to print this string ..

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

plz give ans to this in vb script........ "krishna radha" i want to print this string ..

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

plz give ans to this in vb script........ "krishna radha" i want to print this string ..

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

plz give ans to this in vb script........ "krishna radha" i want to print this string ..

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

plz give ans to this in vb script........ "krishna radha" i want to print this string ..

Answer / amit joshi

Dim str

str = "Radha Krishna"

Msgbox (str)

Is This Answer Correct ?    2 Yes 21 No

Post New Answer

More VB Script Interview Questions

if there is any string in a given format like as "company name employeecode date" then we have to fetch employeecode form string for ex-string is "capgemini12345june2013" then we have to fetch 12345 by using vb script so guys how can we do that please reply it.

3 Answers   Cap Gemini,


which is the good software training centre in bangalore?

1 Answers  


What is the main difference between function and sub-procedure?

0 Answers  


What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.

3 Answers   Accenture,


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

0 Answers  


Which loop is used in case of arrays in the vbscript language?

0 Answers  


Find Out Length of an array without using Ubound?

1 Answers  


How to capture a runtime error in vbscript?

0 Answers  


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

0 Answers   Synechron,


How will you get a subset of a array in vbscript?

0 Answers  


Explain about scrrun.dll?

0 Answers  


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

0 Answers  


Categories