What is the equivalent of VBScript?s On Error In Jscript ?
Answer Posted / jim c
JScript uses the try/catch construct to trap, handle, and
throw exceptions. This is one area where JScript is superior
to VBScript.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
what is the object hyrarchy in QTP for a web based application
What are the 2 ways in which a variable can be declared in the vbscript language?
how to check whether link is disabled in QTP??
Which operator can be used to do an xor operation in vbscript?
Explain the adodb.stream class?
what is event handling?
What are the 2 ways to pass a value to the function?
How strcomp function works?
how does vb script help in web page designing? explain with example.
What is the main difference between function and sub-procedure?
What purpose does ‘on error resume next’ serves?
what is the difference between modular and data and keyword driven framework
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
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
What are the naming conventions while declaring a variable in the vbscript language?