Results 1 to 4 of 4

Thread: Collections

  1. #1
    100 Club
    Join Date
    2008-02
    Posts
    112
    Login to Give a bone
    0

    Default Collections

    Can I create a public collection, and how would I go about creating this?

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,409
    Login to Give a bone
    0

    Default Re: Collections

    Declare the variable in the module declaration section.
    C:> ED WORKING....


    LinkedIn

  3. #3
    100 Club
    Join Date
    2008-02
    Posts
    112
    Login to Give a bone
    0

    Default Re: Collections

    I don't think I ask the quesiton right, I want to build a collection one time and then that collection in several modules and userforms without have to build the that collection in each place that I want to use it.

  4. #4
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,409
    Login to Give a bone
    0

    Default Re: Collections

    You asked the question right. If you declare a variable at module level, it will have scope to your whole project.
    C:> ED WORKING....


    LinkedIn

Similar Threads

  1. VB VSTA Collections
    By mpruna in forum Revit - API
    Replies: 2
    Last Post: 2011-02-11, 06:54 PM
  2. Collections Issue
    By michael.hooker in forum Dot Net API
    Replies: 0
    Last Post: 2009-01-06, 09:23 PM
  3. Using Collections/Classes in VB.NET
    By james.styer.130310 in forum Dot Net API
    Replies: 6
    Last Post: 2007-01-31, 10:43 PM
  4. Collections in Class Modules
    By jason907238 in forum VBA/COM Interop
    Replies: 1
    Last Post: 2006-05-31, 02:17 PM

Posting Permissions

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