took the advise
Code:
 ;the ubound($string) equals 3
;calling string[4] will cause an error.
$string = "a:b:c:d"
$string = split($string,":")
$var = $string[4]



;but, this does not cause an error...
$string = "a:b:c:d"
$var = split($string,":")[4]



changed
Code:
 
$aPerms=Split($line,':')
$sPerms=$aPerms[1]



to
Code:
 $aPerms=Split($line,':')[1] 



no errors
_________________________
John
LM Contractor
One of the 2 dads