Author Topic: About RG ?  (Read 1425 times)

0 Members and 1 Guest are viewing this topic.

2e4lite

  • Guest
About RG ?
« on: August 25, 2014, 06:56:18 AM »
   Is there only one way to store data into the registry--to store it as a string?  Why? If not, Can   illustrate it with routine?
  Thanks in advance!

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: About RG ?
« Reply #1 on: August 25, 2014, 07:11:24 AM »
The vl-registry-write function can write both strings (REG_SZ / REG_EXPAND_SZ) & integer values (REG_DWORD), e.g.:
Code - Auto/Visual Lisp: [Select]
  1. (vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\FixedProfile\\General") "test" 123)

The above will write to the same location as setenv.