classes and collections

  • 19 years ago

    Hi Folks, could anyone help meout?


    I tried to do the following:
    I have a collection CLSORDERS which exists of CLSORDER.
    A order (CLSORDER) has a collection of CLSROWS, which exists of CLSROW.
    And finally a CLSROW exists of a CLSDEBTOR, CLSBUYER and CLSBROKER.


    Q: I can't figure out if my clsRowS (collection) is the same as my clsOrder OR is there a clsOrder 'on top' of my clsRowS?
    The same with clsOrders (collection of one or more clsOrder classes).


    With other words: The result must be so that my code is going to look like something like this:
    Orders(1).Rows(3).Buyer="TheBuyer"
    Orders(2).Rows(5).Broker="TheBroker"


    Please try to be as explicit as possible :-)
    If possible write some code examples.


    Thank you very much for helping out.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'” - Isaac Asimov