ascan() returns the ArrayIndex of the found item or -1 if not in array [Wink]

so your line should be :

If AScan($xArray,$sExcludedInput.Text) > 0

[ 15. August 2003, 13:20: Message edited by: Jochen ]
_________________________