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

  • Thread starter Thread starter geoffdavis
  • Start date Start date
G

geoffdavis

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
 
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


geoffdavis said:
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.
 
Back
Top