For Each Object in Collection

Results 1 to 3 of 3

Thread: For Each Object in Collection

  1. #1
    Fred Guest

    Default For Each Object in Collection

    Is there a way to find out how many objects there are in the collection before I do the loop? I wish to create an array and I would like to DIM it to the proper size in advance.<BR><BR>I thank you in advance for your time and help.

  2. #2
    Join Date
    Dec 1969

    Default RE: For Each Object in Collection

    probably not. but you&#039;ll probably only have to do this once or twice, so don&#039;t worry about optimising your code too much.<BR><BR>j

  3. #3
    Fred Guest

    Default Thank you for your time and help

    I was afraid of that but hoping it could be done.<BR><BR>You are correct - I will only need to do it once per page, so it shouldn&#039;t be a tuning problem. This will not be a heavily accessed page.<BR><BR>Fred

Posting Permissions

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