Could Anybody tell me the VBscript for
REVERSE an Integer int reverse(int num) Ex:246 to 642

Answer Posted / manish

a = inputbox("enter a string or no.")
b = len(a)
For i = 1 to b
c = mid(a,b,1)
d = d & "" & c
b = b -1
Next
msgbox d

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

about vb scripting programs this type of all question& answers

1786


Explain about tristate constants?

669


What are the uses of vb script?

663


Explain about tristate constants in vbscript?

706


Explain the constants in vbscript?

638






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

901


Which operator is used to concatenate the 2 values in the vbscript language?

654


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


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2267


Which event is triggered when mouse focus comes out of an element in the vbscript language?

593


How to access array data?

615


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

2596


What is the main difference between function and sub-procedure?

635


Mention what is vbscript?

674


Explain about the functionality of vb script?

664