Results 1 to 4 of 4

Thread: How to determine the end of a textbox array ?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    How to determine the end of a textbox array ?

    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.

  2. #2
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    I think you're after the Ubound property of the textbox array:

    VB Code:
    1. If i = TextBoxArray.Ubound Then 'last textbox
    -adehh

  3. #3
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    Think this will work

    VB Code:
    1. For x = 0 To Text1.UBound
    2.     blah blah
    3. Next x

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Originally posted by adzzzz
    I think you're after the Ubound property of the textbox array:

    VB Code:
    1. If i = TextBoxArray.Ubound Then 'last textbox
    -adehh
    or

    VB Code:
    1. If i = TextBoxArray.Count - 1 Then

    take your pick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width