Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to work with Collection in VB6?

How to work with Collection in VB6?

Scheduled Pinned Locked Moved Visual Basic
csharpdotnethelptutorial
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    suguimoto
    wrote on last edited by
    #1

    Hello there! I'm working with VB6 ( X| argh! I have no option) and I have a small problem, My application has 6 forms and the main form posses 7 collections. And the whole operation needs to work with those 7 collections (adding, deleting, counting and so on) in any Form. My problem is: how to make those 7 collections Public or "Global"?:confused: Ps.: I could do it in VB.Net but the current DLL's does not support .Net Framework yet. Thanks in advance. With Regards, Suguimoto

    P D 2 Replies Last reply
    0
    • S suguimoto

      Hello there! I'm working with VB6 ( X| argh! I have no option) and I have a small problem, My application has 6 forms and the main form posses 7 collections. And the whole operation needs to work with those 7 collections (adding, deleting, counting and so on) in any Form. My problem is: how to make those 7 collections Public or "Global"?:confused: Ps.: I could do it in VB.Net but the current DLL's does not support .Net Framework yet. Thanks in advance. With Regards, Suguimoto

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      suguimoto wrote:

      orking with VB6 ( X| argh! I have no option)

      Bummer. VB6 has been so dead for so long.

      "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      1 Reply Last reply
      0
      • S suguimoto

        Hello there! I'm working with VB6 ( X| argh! I have no option) and I have a small problem, My application has 6 forms and the main form posses 7 collections. And the whole operation needs to work with those 7 collections (adding, deleting, counting and so on) in any Form. My problem is: how to make those 7 collections Public or "Global"?:confused: Ps.: I could do it in VB.Net but the current DLL's does not support .Net Framework yet. Thanks in advance. With Regards, Suguimoto

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        IIRC, make the stuff Public in a Module. But, IIRC, if you're thinking of doing this, you really need to rethink your data model/app design.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        S 1 Reply Last reply
        0
        • D Dave Kreskowiak

          IIRC, make the stuff Public in a Module. But, IIRC, if you're thinking of doing this, you really need to rethink your data model/app design.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          S Offline
          S Offline
          suguimoto
          wrote on last edited by
          #4

          Actually I'm reading from a CSV file, putting into collections (like data base). I believe that working with collections is the best way, instead of reading the CSV file everytime that the app needs to fill a listview ou delete a value. At the moment I gave up on collections, and I'm reading the csv all the time. =/ Thanks anyway :)

          D 1 Reply Last reply
          0
          • S suguimoto

            Actually I'm reading from a CSV file, putting into collections (like data base). I believe that working with collections is the best way, instead of reading the CSV file everytime that the app needs to fill a listview ou delete a value. At the moment I gave up on collections, and I'm reading the csv all the time. =/ Thanks anyway :)

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Actually, I was referring to making everything "global"...

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            S 1 Reply Last reply
            0
            • D Dave Kreskowiak

              Actually, I was referring to making everything "global"...

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              S Offline
              S Offline
              suguimoto
              wrote on last edited by
              #6

              Hi Dave! I could do it! I declared Public m_Cars As New Collection in the module :) Thank you!! :laugh: :cool:

              modified on Thursday, December 27, 2007 5:54:39 AM

              D 1 Reply Last reply
              0
              • S suguimoto

                Hi Dave! I could do it! I declared Public m_Cars As New Collection in the module :) Thank you!! :laugh: :cool:

                modified on Thursday, December 27, 2007 5:54:39 AM

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Just because you can do it, doesn't mean you should do it...

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups