scripting@wanadoo.nl




ArrayEnumValue()

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 ArrayEnumValue()
AuthorJens Meyer (sealeopard@usa.net)
Action Creates an array of names of the registry entries contained in a registry key or subkey.
SyntaxArrayEnumValue ($subkey) 
Parameters
  • subkey (Required / String) Required string containing the key or subkey for which the registry entries will be enumerated 
  • Remarkssee http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=12;t=000065 
    ReturnsArray containing the registry values 
    DependenciesNone. 
    Examples
    $retcode=ArrayEnumValue('HKEY_USERS\.Default')
    
     
    Source
    FUNCTION ArrayEnumValue ($regsubkey)
      DIM $retcode, $valuecounter, $currentvalue, $valuearray
    
      IF NOT KeyExist($regsubkey)
        $arrayenumvalue=''
        RETURN
      ENDIF
    
      $valuecounter=0
      DO
        $currentvalue=EnumValue($regsubkey,$valuecounter)
        IF ($currentvalue <> 259) AND @error = 0
          REDIM PRESERVE $valuearray[$valuecounter]
          $valuearray[$valuecounter]=$currentvalue
          $valuecounter=$valuecounter+1
        ENDIF
      UNTIL ($currentvalue = 259) OR @error
    
      $arrayenumvalue=$valuearray
    ENDFUNCTION ; - ArrayEnumValue -
     
      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