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

give me any information abou vb script books learn quckly

0 Answers  


What is the extension of the vbscript file?

0 Answers  


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

0 Answers  


Hi everybady, i have faced few Qns in one of i attended interview, please help me out with these below Qns. 1. how to join values without using join function? 2. how to compare values without using String compare function? 3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome B A N G A L o R E 4. Input is "CapGemini" but uotput should be like this "inimeGpaC" 5. Input is 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Can someone let me know results of this Qns, please. Thanks.

2 Answers   CSS Corp,


hi, How will write a regular expression of date in VB scripting.

1 Answers  






What is the use of option explicit in vbscript?

0 Answers  


How will you check that a variable is an array in vbscript?

0 Answers  


If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?

0 Answers  


1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting

3 Answers  


how to comvert 120 into one hunderd twenty rupees only and vice varsa

0 Answers  


can any body give the code to write the function for given suppose user login with usrer id and pwd to yahoomail.after cliking "sign in"if it is valid user id the next page will display userid'message box.( Note u have to use excel sheet to retrive the userid's data)

3 Answers   Bally Technologies,


please can you help me to get a code of flames using a visual basic 6

0 Answers  


Categories