What is the difference between ByRef and ByVal.
When to use ByRef and ByVal

Answer Posted / akshitha

Arguments r of 2 types-
byval & byref
byval-when a method is called using by value & an argument
is passed & if the value of that argument is modified within
that method,orginal argument is not modified

byref-when a method is called by reference & an argument is
passed & if the value of that argument is modified within
that method,original argument is modified

Is This Answer Correct ?    31 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between vbscript and vba?

604


How will you format a number in percetage format in vbscript?

590


Mention how to create a cookie using vbscript?

531


What is the difference between VBScript and JavaScript?

2062


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

801






What is sql loader? Explain the files used by sql loader to load file?

622


Mention when to use function procedures and what are its characteristics?

627


Explain about vb script?

751


Mention what are the rules to name variable in vbscript?

540


What are the environments supported by vbscript language?

508


What is the technology used by vb script?

543


did any one attended interview in applabs if you had gone through plz tell me the procedure

1857


who will create the object?

1721


How will you get a string with the specified character the specified number of times in vbscript?

576


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

862