Results 1 to 4 of 4

Thread: [RESOLVED] Get and Set Property

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    256

    Resolved [RESOLVED] Get and Set Property

    Hi,
    What are the Get and Set properties used for ??
    for example :
    Code:
    Private Property Get xyz() As anything
    Code:
    Private Property Set xyz() As anything
    Thanks
    If an answer to your question has been helpful, then please, Rate it!

  2. #2
    Frenzied Member zynder's Avatar
    Join Date
    Nov 2006
    Location
    localhost
    Posts
    1,434

    Re: Get and Set Property

    Let not Set.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Get and Set Property

    Both Let And Set can be used. It depends on what you are doing.

    Properties are the primary method by which objects store data and make it available to the program. In Visual Basic, you add properties to a class definition by using Property Get and Property Set procedures.

    A Property Let procedure for setting the property value (if the variable will hold an object reference, you will use a Property Set procedure instead)

    A Property Get procedure is used to retrieve the property value.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    256

    Re: Get and Set Property

    Thank u hack !!!
    If an answer to your question has been helpful, then please, Rate it!

Posting Permissions

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



Click Here to Expand Forum to Full Width