+ Reply to Thread
Results 1 to 5 of 5

What the code in the brackets mean

  1. #1
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    What the code in the brackets mean

    i m unable to understand what the code in the brackets mean(i think they are arguments, but what does they signify)

    Please Login or Register  to view this content.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: What the code in the brackets mean

    The first, Target, relates to the Range on which rightclick was activated... the latter Cancel is a Boolean that allows you to override the event itself as is the case in your example.

  3. #3
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: What the code in the brackets mean

    Ok. But i still had some doubts regarding the same.what does the code in the brackets mean. i had studied many examples on the net but unable to Understand them.

    Could u please elaborate in detail.here in the given example above where is the range defined.
    i Could not understand the keywords (By Ref, By Val) appearing in most of the examples.also do tell me in which cases will it be useful and when they are used.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: What the code in the brackets mean


  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,466

    Re: What the code in the brackets mean

    The help explains

    ByVal:
    by value
    A way of passing the value of an argument to a procedure instead of passing the address. This allows the procedure to access a copy of the variable. As a result, the variable's actual value can't be changed by the procedure to which it is passed.

    ByRef:
    by reference
    A way of passing the address of an argument to a procedure instead of passing the value. This allows the procedure to access the actual variable. As a result, the variable's actual value can be changed by the procedure to which it is passed. Unless otherwise specified, arguments are passed by reference.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1