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


Please Help Members By Posting Answers For Below Questions

what is the object hyrarchy in QTP for a web based application

1885


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

564


how to check whether link is disabled in QTP??

5630


Which operator can be used to do an xor operation in vbscript?

680


Explain the adodb.stream class?

545






what is event handling?

584


What are the 2 ways to pass a value to the function?

516


How strcomp function works?

624


how does vb script help in web page designing? explain with example.

1584


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

549


What purpose does ‘on error resume next’ serves?

549


what is the difference between modular and data and keyword driven framework

1740


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

2238


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)

1409


What are the naming conventions while declaring a variable in the vbscript language?

618