Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Count Objects in an Array (XP)

    Is it possible to count the objects in an array?

    MyArray = array("A","B","C")

    There are three objects the MyArray

    Thanks,
    John

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Count Objects in an Array (XP)

    Try

    UBound(MyArray) - LBound(MyArray) + 1

    (in fact, LBound will be 0, but the above makes that explicit)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •