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

How to replace junk code recorded by QTP with a mall function.

1756


Sub link() Dim k As Integer Dim rand As Integer Dim URL As String Dim foldernum As Integer Dim folderstring As String Dim filenum As Integer Dim filestring As String k = 1 'for AC Numbers For i = 11 To 40 foldernum = 0 foldernum = 1000 + i folderstring = CStr(foldernum) folderstring = Mid(folderstring, 2, 3) folder = "ac" & folderstring 'folderstring = Sheets(2).Cells(i, 1) ' for Number of Random files For j = 1 To 10 rand = Int(Rnd * (200 - 1) + 1) filenum = 0 filenum = 1000 + rand filestring = CStr(filenum) filestring = Mid(filestring, 2, 3) 'URL = "http://ceobihar.nic.in/PSCDROM/ac" & folderstring & "/i" & folderstring & "0" & filestring & ".pdf" URL = "http://www.elections.tn.gov.in/pdfs/dt1/" & folder & "/" & folder & filestring & ".pdf" ' URL =http://www.wb.nic.in/wbeco/EROLLS/PDF/English/A001/a0010105 .pdf Cells(k, 1) = folderstring Cells(k, 2) = folder Cells(k, 3) = filestring Cells(k, 3) = URL k = k + 1 Next j Next i End Sub plz define it

2356


Explain the constants in vbscript?

638


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1750


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

3118






Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

901


Explain the extension .hta?

629


why do u choose to go for testing why cant for devoloping

1702


What is the difference between do until loop and do while loop?

641


How will you get the largest subscript of an array in vbscript?

732


Mention characteristics of sub procedures?

676


What is purpose of scripting.filesystemobject class in vbscript?

746


Which operator can be used to check if two numbers are equal or not in vbscript?

760


wht must be the interview question on corinthian information technology solutions incorporated.

2285


what is diff between static and dynaic arrys?

1686