Hi there,

I've just imported the ARRAYENUMKEY UDF and I was wondering what EXIT 87 does? (and EXIT 0) Is 87 a specific exit code? Where would I find a list of these codes? I've only been using Kix for about a week so please forgive me if the answer is blatantly obvious!

******CODE********


function arrayenumkey($regsubkey)
dim $retcode, $subkeycounter, $currentsubkey, $subkeyarray

if not keyexist($regsubkey)
exit 87
endif

$subkeycounter=0
do
$currentsubkey=enumkey($regsubkey,$subkeycounter)
if not @ERROR
redim preserve $subkeyarray[$subkeycounter]
$subkeyarray[$subkeycounter]=$currentsubkey
$subkeycounter=$subkeycounter+1
endif
until @ERROR

$arrayenumkey=$subkeyarray
exit 0
endfunction


****END CODE*******

Thanks in advance!

Glenn