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

What is the extension of the vbscript file?

0 Answers  


What are the different types of loops available in the vbscript language?

0 Answers  


Explain the asc function?

0 Answers  


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?

0 Answers  


What are the valid scopes of a variable in vbscript?

0 Answers  






What is the use of the instr function?

0 Answers  


what is diff between static and dynaic arrys?

0 Answers  


How to get 120 using 5 zeroes, you can use any operator(+, *, /...) in qtp.

2 Answers   Cognizant,


How do i automate a website www.flyashx.com without having any test cases witin a week time.

0 Answers   Zensar,


print the array values in ascending order?

2 Answers   CSS Corp,


what is the use of Data base check point ?

3 Answers  


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)?

2 Answers   HCL,


Categories