What is the difference between ByRef and ByVal.
When to use ByRef and ByVal
Answer Posted / cybergh0st
Byval refers to the actual value of the variable. ByRef
refers to the location of where the value is stored.
Passing.
| Is This Answer Correct ? | 44 Yes | 2 No |
Post New Answer View All Answers
Explain about tristate constants?
When are redim statement and preserve keyword used in the vbscript language?
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
Explain the constants in vbscript?
I need to get some data from data base and store this
(retrieved) data in a excel sheet using VB script in QTP9.0
I have created connection for data base
I have created as excels sheet by using
Set XL=CreateObject("Excel.Application")
XLworksheet.cells(1,1).value= rs.fields.item("<
Which function allows you to instantiate an object given its programmatic identifier or progid?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
How will you get the octal value of the given number in vbscript?
why do u choose to go for testing why cant for devoloping
why variable name should not exceed 255 characters?
How to write functions and sub in vb script?
Which constant is used for print and display functions and works as same as pressing enter key?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
what is the difference between modular and data and keyword driven framework
How to open browser in vb script?