Search notes:

Registry: HKEY_CURRENT_USER\Software\VB and VBA Program Settings

option explicit

const appName     = "tq84 appliction"
const section     = "some settings"
const keyName     = "initialization date"

sub main() ' {

    dim initDate as string
    initDate = getSetting(appName, section, keyName)

    if initDate <> "" then
       debug.print("App was initialized on " & initDate)
    else
       debug.print("App is not yet initialized")
       saveSetting appName, section, keyName, format(now, "yyyy-mm-dd hh:nn:ss")
    end if

end sub ' }

sub removeApp() ' {
     deleteSetting appName, section
end sub ' }
Github repository about-Windows-Registry, path: /HKEY_CURRENT_USER/Software/VB and VBA Program Settings/read-write.vb

See also

The VBA statements saveSetting, getSetting and deleteSetting

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758193827, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/registry/tree/HKEY_CURRENT_USER/Software/VB-and-VBA-Program-Settings/index(60): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78