write a vb script to display the reverse of vbs

Answer Posted / mudaseer

Option Explicit

Dim MyStr, char, NewStr, x, y

MyStr = "vbs"

y = Len(MyStr)
For x = y To 1 Step -1
char = Mid(MyStr,x,1)
NewStr = NewStr & char
Next

msgbox newstr

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you get the exponent of the given number in vbscript?

565


What are the 2 ways in which a variable can be declared in the vbscript language?

568


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 ?

1564


Mention what if you do not specify anything when you call a procedure?

574


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

2244






Explain the adodb.stream class?

549


How to take whole text output from screen of Bitmap Application.

1873


Explain some uses of vb script?

556


Which in-built function related to an array joins substrings into one string in the vbscript language?

520


What is the difference between vb debugger and the script debugger?

598


Mention characteristics of sub procedures?

582


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

546


Explain the string concatenation function in vbscript?

544


What is the difference between for loop and while loop?

556


Mention when to use function procedures and what are its characteristics?

629