Running list of Values...

Discussion in 'AutoCAD' started by Paul Richardson, Sep 13, 2004.

  1. Morning...

    I need to create a runtime list of values that will be used through out my
    program. I will need check the values on each pass(600++) and add or remove
    values as necessary. Values are just lengths, no key necessary. I'm using a
    collection now but it seems a bit sluggish.

    Is there a better way to do this?

    TFYT
    Paul
     
    Paul Richardson, Sep 13, 2004
    #1
  2. Can you expand on what it is you're doing, Paul? It sounds like you're
    looking for something in the list. If so, you could use a Scripting
    Dicitionary object instead of a collection. With it, you can use the Exists
    method to check Key values. While you say no keys are necessary, they could
    be used with the dictionary to speed things up.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 13, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.