Results 1 to 4 of 4

Thread: [resolved] loop through all properties [/resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    [resolved] loop through all properties [/resolved]

    is there any way to loop through all the properties of an object?

    Example: if i had an object of this class

    VB Code:
    1. public class ObjectExample
    2.  
    3. private _a as integer
    4. private _b as string
    5.  
    6. public property a() as integer
    7.  get
    8.     return _a
    9.  end get
    10.  set(byval value as integer)
    11.    _a = value
    12.  end set
    13. end property
    14.  
    15. public property b() as string
    16.  get
    17.     return _b
    18.  end get
    19.  set(byval value as string)
    20.    _b = value
    21.  end set
    22. end property
    23.  
    24. end class

    now i want to be able to loop throught and check the value of property a and then of property b.

    is this even possible?
    Last edited by dogfish227; Jun 23rd, 2004 at 07:19 PM.

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