New free VBA File Selection List File Creation form

Discussion in 'AutoCAD' started by hawstom, Mar 5, 2004.

  1. hawstom

    hawstom Guest

    I posted a VBA List File Creation form with sample AutoLISP code for free use at http://www.hawsedc.com/gnu It looks something like this.

    =================================================
    Files to include

    Custom Explanatory label

    ---------------------------------
    List box for selected files.. |......... Add...
    File1................................... |......... Remove
    File2................................... |
    File3.................................. |......... Move up
    .......................................... |......... Move down
    ...........................................|
    ...........................................|......... Done
    .......................................... |
    ...........................................|
    --------------------------------
    List file: ____________. . . . . . . . .Select list
    Tip:
    Custom tip text
    ================================================

    It lets you pick multiple files at once to add, remove, move up , or move down. It lets you type in a list file name or browse existing files, and it passes the name of the final list file (full of selected filenames) to the calling function via the USERS1 var.

    The form uses Frank Oquendo's WINAPI Common Dialog file selection to get files and assemble them into a list, which is itself saved in a file.

    It reads custom text, filespecs, and initial list file name from USERS1 through USERS4 variables, which are set immediately before the call by the calling function. Then on close it sets USERS1 to the name of the list file the user settled on.

    I hope to hear some ideas for improvement. The VBA is not GNU nor open source at this time, but it is offered free of charge in the hope you find it useful.

    Thomas Gail Haws
    Find me at Google
     
    hawstom, Mar 5, 2004
    #1
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.