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

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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can u describe what kind of testing are for OTC derivates by banks.

1671


How are comments handled in the vbscript language?

513


How are values assigned to string type and numeric type variables?

542


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1570


1. How do declare public variable in vb scripts?

1579






What are the valid scopes of a variable in vbscript?

610


How will you release the memory acquired by an array variable in vbscript?

748


How to declare an array in vbscript?

670


Anyone have qtp11.0 crack?

2389


Explain a few date functions in vbscript

558


Explain the constants in vbscript?

568


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2398


after medical test,when will be the police verification

1720


Explain the support of asp for vb script functionality?

638


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3038