Answer Posted / harry
hi,
when you declare varible you use option Explicit as a
first line of your script .
ex
DIM name
if you do any spelling mistake like nime instead of name
then vb will take this as an new verible and endup giving
unpredictable result while runing.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to Convert Hex color code to color name in VB Script?
Explain How do you create a recordset object in vbscript?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
Which event is triggered when mouse focus comes out of an element in the vbscript language?
how to automatically update the sql server2005 database records when insert in vb6?
what is resorceallocation
How can constants be declared in the vbscript language?
can anyone tell me the procedure of interview held in applabs
How to Import data from a file (file is on the desktop) to the data table
How will you release the memory acquired by an array variable in vbscript?
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
Does VB/Win make standalone .EXE files?
Explain few date functions in vbscript?
Which object provide information about a single runtime error in a vbscript?
Explain the support of asp for vb script functionality?