Check the code for the ArrayEnumValue UDF. I believe I went according to the documentation checking for a return value of 259 indicating that the last entry has been reached. I just don't really remember anymore.
_________________________
There are two types of vessels, submarines and targets.