It's a scope problem. Take your original dim of the array:
code:
Dim $aUserArray[0]

and put it before the if statement. It worked when I tested it.
_________________________
Eric