Results 1 to 3 of 3

Thread: [RESOLVED] Read-Only Class Property

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    143

    Resolved [RESOLVED] Read-Only Class Property

    good evening, everyone.

    i would like to ask if it is possible to have a property inside a class that is only readable, and not writeable?

    i just want my class to have properties that can be viewed and read by forms, but not have them be able to change the value of the class's property.

    i hope some of you guys can help. i'd really appreciate it. thanks!
    Last edited by dev.rogee; Jan 10th, 2007 at 02:19 AM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Read-Only Class Property

    Sure, just create the Property Get (not the Set/Let).

    If you want further details/examples, see this FAQ thread.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    143

    Re: Read-Only Class Property

    oh... okay.

    thank you very much. i'll try it out now...

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