pros and cons of setenv and vla-put-???

Discussion in 'AutoCAD' started by geoffdavis, Jan 6, 2004.

  1. geoffdavis

    geoffdavis Guest

    Hello,

    I'm interested in opinions regarding when to use the setenv function and when to use the vla-put- functions to modify environment variable using visual lisp.

    Is there criteria that can be used to determine which function will work best? I have considered them pretty much interchangeable but usually use the vla-put functions.

    Just curious. thanks,

    Geoff
     
    geoffdavis, Jan 6, 2004
    #1
  2. I don't know about better/worse but I've found a few
    things that could not be set with vla-* functions.

    (setenv "MRUFilesToList" "9")
    (setenv "ShowFullPathInTitle" "1")
    (setenv "HideSystemPrinters" "1")

    So sometimes you don't have a choice.

    --

    -Jason
    Member of the Autodesk Discussion Forum Moderator Program


    vla-put- functions to modify environment variable using visual lisp.
    considered them pretty much interchangeable but usually use the vla-put functions.
     
    Jason Piercey, Jan 8, 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.