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

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

1073


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

2052


Anyone have qtp11.0 crack?

2539


How do you declare a variable in vbscript?

772


Why is error handling required?

708






Explain about constants in vb script?

712


How are comments handled in the vbscript language?

665


Explain the extension .hta?

686


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2744


How to delete a cookie using vbscript?

726


Explain the adodb.stream class?

694


How can you create an object in vbscript?

768


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1963


Description.Create

2294


Explain a few date functions in vbscript

703