When I run this snippet, I get no error, but no display, either. When I define the $TS_Branches_Im_in with a couple of names, I get a display, but the cursor doesn't move. When I hit Enter, I get an error saying label not found. Good thing, since the next block of code is an infinite loop!

I also had to set the value of $br_count to the size of the array using UBound.

Where are the initial values of $X and $Y defined? These are compared, but are uninitialized so are zero.

The input logic is odd.. Think about an input loop with all the conditions - UP, DOWN, LEFT, RIGHT, and ENTER.. with ENTER exiting the loop and obtaining the selection.

Cursor moves may seem fancy, but users will probably be bothered by all this motion when you can simply number the selections and prompt for the selection ID.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D