scripting@wanadoo.nl




ArrayEnumKey()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
19 February 2002 ArrayEnumKey()
AuthorJens Meyer (sealeopard@usa.net)
Action Creates an array of names of the subkeys contained in a registry key or subkey.
SyntaxArrayEnumKey ($subkey) 
Parameters
  • subkey (Required / String) Required string containing the key or subkey for which the subkeys will be enumerated 
  • Remarkssee http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000064 
    ReturnsArray containing the list of subkeys 
    DependenciesNone. 
    Examples
    $retcode=arrayenumkey('HKEY_USERS')
    
     
    Source
    FUNCTION ArrayEnumKey ($regsubkey)
      DIM $retcode, $subkeycounter, $currentsubkey, $subkeyarray
    
      IF NOT KeyExist($regsubkey)
        $arrayenumkey=''
        RETURN
      ENDIF
    
      $subkeycounter=0
      DO
        $currentsubkey=EnumKey($regsubkey,$subkeycounter)
        IF ($currentsubkey <> 259) AND @error = 0
          REDIM PRESERVE $subkeyarray[$subkeycounter]
          $subkeyarray[$subkeycounter]=$currentsubkey
          $subkeycounter=$subkeycounter+1
        ENDIF
      UNTIL ($currentsubkey = 259) OR @error
    
      $arrayenumkey=$subkeyarray
    ENDFUNCTION ; - ArrayEnumKey -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter