User Defined Class : How to expose a collection of properties?




(cross-posted to alt.comp.lang.vbscript)

Guys,

This may be a bit basic...

How do I provide a list of all available properties available in my
user defined class? For example:

CLASS clsTest

PROPERTY GET A
A=1
END PROPERTY
PROPERTY GET B
B=2
END PROPERTY

END CLASS

Could I use the FOR EACH construct to loop through the properties (A,B)
available in this class... somehow? (grin).

Thanks...

--Brian

.



Relevant Pages

  • Re: processing a sequence
    ... (loop for sublist = (collect-sublist) ... return accum if not element = list.first ... if prev and element < prev ... James still didn?t show his Ruby one-liner that outperforms the Lisp ...
    (comp.lang.lisp)
  • Re: Can inner join replace multiple loop selects?
    ... The only wrinkle is not incrementing between R and L ... So somehow I need to read the entire group, set a boolean bHaveL and then ... Loop through each of those and set bHaveL variable for each ...
    (comp.databases.ms-access)
  • Re: Process notification
    ... As you see from prev. ... posts there is no obsolute user mode solution on how ... and then immidiatly terminated - your "monitoring loop" may not detect it. ... Vladimir ...
    (microsoft.public.win32.programmer.kernel)
  • RE: Extreme beginner question on reading lines from a file.
    ... print FILEOUT "M98PPECK.SUBL1\n"; ... the 1st line is written into $prev. ... This code will fail if there's ... If it fails it returns false and the loop exits. ...
    (perl.beginners)
  • Re: Reading binary files of irregular format with TMemoryStream
    ... One thing that troubles me is the field data itself. ... if I am told that a field is 4 bytes in length and somehow it gets ... If I go in with a for/next loop and read 4 bytes, ... I'm getting a copy of a corrupted file sent to me so I can inspect it a ...
    (comp.lang.pascal.delphi.misc)

Quantcast