What does 'byVal' do?

Results 1 to 3 of 3

Thread: What does 'byVal' do?

  1. #1
    Join Date
    Dec 1969

    Default What does 'byVal' do?

    As used in this syntax-<BR><BR>Function DisplayCategories(aCategories, ByVal iCurID, ByVal iDepth)<BR><BR>TIA

  2. #2
    Join Date
    Dec 1969

    Default RE: What does 'byVal' do?

    the argument supplied as ByVal will retain its original value no matter how it is manipulated inside that function. Where as ByRef means you actually passing the reference of the variable rather than its VALue, hence it&#039;s updated globally(ie inside and outside the function). BTW, its the NO.1 asked interview question.

  3. #3
    Join Date
    Dec 1969

    Default check this out

    http://www.aspfaqs.com/ASPScripts/PrintFAQ.asp?FAQID=33<BR><BR>and then do a search on "byVal". Good luck.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts