Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32

Thread: thinBasic Beta 1.8.6.0

  1. #31
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    In general, thinBasic interpreter does not need any registry settings in order to execute scripts.

    Instead registry settings are used to
    • integrate thinAir with the operating system shell
    • show thinBasic files with dedicated icons in explorer
    • been able to execute scripts just double clicking on them in explorer
    • right click on scripts and have dedicated menu


    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #32


    Registry access is working fine in thinBasic under Wine.

    uses "Registry" 
     
    dim lRet      as long 
    dim sKeyPath  as string value "Software\thinBasic" 
    dim sKeyName  as string value "InstallPath" 
     
    DIM MyValue   AS STRING 
     
    lRet = Registry_KeyExists("HKEYLM", sKeyPath, sKeyName) 
     
    if lRet = %TRUE then 
      MyValue = Registry_GetValue("HKEYLM", sKeyPath, sKeyName) 
      msgbox 0, "Key " & sKeyPath & sKeyName & " exists: " & MyValue 
    else 
     
      if lRet = -1 then 
        msgbox 0, "Path [" & sKeyPath & "] not found in registry" 
      elseif lRet = -2 then 
        msgbox 0, "Path [" & sKeyPath & "] exists but key [" & sKeyName & "] not found in registry" 
      end if 
       
    end if
    
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. thinBasic Beta 1.8.2.x
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 13
    Last Post: 21-06-2010, 10:10
  2. thinBasic Beta 1.8.1.x
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 21
    Last Post: 17-06-2010, 18:24

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •