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
How to replace junk code recorded by QTP with a mall function.
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
Explain the constants in vbscript?
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
Explain the extension .hta?
why do u choose to go for testing why cant for devoloping
What is the difference between do until loop and do while loop?
How will you get the largest subscript of an array in vbscript?
Mention characteristics of sub procedures?
What is purpose of scripting.filesystemobject class in vbscript?
Which operator can be used to check if two numbers are equal or not in vbscript?
wht must be the interview question on corinthian information technology solutions incorporated.
what is diff between static and dynaic arrys?