Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Public Property (Get, Set)

  1. #1

    Thread Starter
    Fanatic Member Loraine's Avatar
    Join Date
    Aug 2006
    Location
    8ft. underground
    Posts
    581

    Resolved [RESOLVED] [2005] Public Property (Get, Set)

    Code:
            Public Property Property_Name(Parameters)
    
                   Get
                        ' Code here
                    End Get
    
                    Set
                        ' Code here
                     End Set
    
              End Property
    And this code

    Code:
             Public WriteOnly Property Propert_Name()
                    Set(Parameters)
                          ' Code Here
                    End Set
             End Property
    What does this code all about ? is it required ? how it will needed ?

  2. #2

    Thread Starter
    Fanatic Member Loraine's Avatar
    Join Date
    Aug 2006
    Location
    8ft. underground
    Posts
    581

    Re: [2005] Public Property (Get, Set)

    I solved this problem !

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

    Re: [RESOLVED] [2005] Public Property (Get, Set)

    Please post your solution.

    It could help someone else with the same or similiar problem.

    Thanks.

  4. #4

    Thread Starter
    Fanatic Member Loraine's Avatar
    Join Date
    Aug 2006
    Location
    8ft. underground
    Posts
    581

    Re: [RESOLVED] [2005] Public Property (Get, Set)

    Quote Originally Posted by Loraine
    Code:
            Public Property Property_Name(Parameters)
    
                   Get
                        ' Code here
                    End Get
    
                    Set
                        ' Code here
                     End Set
    
              End Property
    And this code

    Code:
             Public WriteOnly Property Propert_Name()
                    Set(Parameters)
                          ' Code Here
                    End Set
             End Property
    The code depict there are implemented with a special type of procedure that contains a Get and Set section. The Set section of the procedures is invoked when the application attempts to set the property's value, and the Get section is invoked when the application requests the property's value. The value passed to the property is usually validated in the Set section and, if valid, is stored to a local variable. The same local variable's value is returned to the application when it requests the property's value, from the property's Get section.

    Well this is base on what i found in the code when im trying it. And this is the way i explain it. Check the other point of view base on this property. Hope this will help

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

    Re: [RESOLVED] [2005] Public Property (Get, Set)

    Thanks Loraine.

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