arraylist

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RobcPettit@yahoo.co.uk

    #1

    arraylist

    Hi, hopefully Ill explain my question ok. Im using an arraylist to get
    an an array of values from an application, which allows me to use a
    com interface to interact with its functions. I have no access to the
    code. I use prices.Add(ba.g etPrices());, prices bieng my arraylist. It
    returns 1 element, which has 6 dimensions. I think thats the wording.
    So within prices[0] there is 6 dimensions, 0 to 5. When I use
    prices.count it returns 1, how do I get the count of the dimensions.
    Regards Robert
  • RobcPettit@yahoo.co.uk

    #2
    Re: arraylist

    Thankyou for your reply. Addrange was the one, gives me what I need.
    Regards Robert

    Comment

    • RobcPettit@yahoo.co.uk

      #3
      Re: arraylist

      Thankyo for your reply. I will read up on CollectionBase. Im still
      having problems, I can see the elements but cant access them.
      Regard Robert

      Comment

      • RobcPettit@yahoo.co.uk

        #4
        Re: arraylist

        Im struggling with this. I dont understand why though. If I put a
        break in my code and look at the prices array I can see 6 element 0 -
        5. If I open up [0] I can see a list of values Im trying to get, they
        dont have[0][1] etc beside them, just there names in a column, eg
        amount1 100, amount2 200. I thought if I could see them I could ref
        them as price[0].amount1. Ive tried object 'o = ba.getprices(0) ' and
        prices.AddRange (ba.getPrices() ). I can see the details in both but
        cant get at the details. Im reading up, but Im missing something.
        Regards Robert

        Comment

        Working...