CreateObject("System.Collections.ArrayList")

Important Notice


Please note that on 14th December 2023 users will experience an expected outage whilst we make upgrades to our network. We anticipate this process may take a couple of hours and so we apologise in advance for any inconvenience.

  • doctored examples



    thats cool no loops

  • Re: CreateObject("System.Collections.ArrayList")


    Thats just totally awesome... thx Pike. I'll have to have a play with that later today. I would feel almost bad using it though... seems like taking a short cut and forgetting about a lot of what I learned with REDIMing :D

    _______________________________________________
    There are 10 types of people in the world. Those that understand Binary and those that dont. :P


    Why are Halloween and Christmas the same? Because Oct 31 = Dec 25... ;)

    _______________________________________________

  • Re: CreateObject("System.Collections.ArrayList")


    these may also be helpful


  • Re: CreateObject("System.Collections.ArrayList")


    and of course


    sortedlist


  • Re: CreateObject("System.Collections.ArrayList")


    few more methods


  • Re: CreateObject("System.Collections.ArrayList")


    Did you ever manage to get an array in without looping?


    I think I've made my mind up that you can't since the array list is just a collection, though I'd be very happy for you to show me the error of my ways ;)

  • Re: CreateObject("System.Collections.ArrayList")


    passing ArrayList directly to array no loop

  • Re: CreateObject("System.Collections.ArrayList")


    replace item in array with .array() () and workable GetRange


    Copyto() ...eludes ??

  • Re: CreateObject("System.Collections.ArrayList")


    here is a few more CreateObject("System.Collections.ArrayList") methods that you can possibly use

    Code
    .IndexOf_3 ("A")' Last  occurrence index in arraylist
    .Sort_2 (CreateObject("System.Collections.CaseInsensitiveComparer"))
    .Sort_3(2,3,nothing) 'Index, Count, Nothing
    .Sort_3(2,3,CreateObject("System.Collections.CaseInsensitiveComparer")) 'Index, Count, Comparer



    and CreateObject("System.Random")


  • Re: CreateObject("System.Collections.ArrayList")


    few more

    Code
    .BinarySearch_2(Value)
    .BinarySearch_3(value, CreateObject("System.Collections.CaseInsensitiveComparer")
    .BinarySearch(index, count, value, Nothing)
    .BinarySearch(index, count, value, CreateObject("System.Collections.CaseInsensitiveComparer"))


    interesting that they can be set up store two billion items!

  • Re: CreateObject("System.Collections.ArrayList")


    example of an ArrayList of ArrayList

  • Re: CreateObject("System.Collections.ArrayList")


    Little more information on using CreateObject("System.Random") class methods and discriptions. Translated by Google Translate from japanese to english
    http://tokidokidokin.com/2011/…%82%92%E4%BD%BF%E3%81%86/


    Next method - Return a random number greater than or equal to 0
    Next_2 method - will return a random number within a specified range
    Next_3 method - Returns a random number greater than or equal to 0 less than the maximum value that you specify
    NextDouble method - will return a random number between 1.0 and 0.0

  • another system collectons

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!