Well i have a grid(array) of textboxes that expands or contracts accordingly to the data fed into it. Its in the form text.text(i) . Is there a way to determine the last textbox in the array, like EOF idea ?

if text.text(i) = EOF(last textbox in grid) then,

kind of thing.