Results 1 to 3 of 3

Thread: Get ubound for textbox

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Montréal, Québec Canada
    Posts
    202

    Get ubound for textbox

    Hail,

    I have a page that created X number of text boxes called txtTest. Now when I need to access the info within, I know I can use txtTest(X) where X is the text box I need. This all works fine, what I'm looking for now is to find out the maximum amount of text boxes through something similar as UBound in VB. I know in VB I'd do Y=txtTest.UBound, so what can I do in VBScript to get that same info?

    Phailak

  2. #2
    Hyperactive Member gtilles's Avatar
    Join Date
    Dec 2004
    Location
    Planet Earth
    Posts
    394

    Re: Get ubound for textbox

    You may want to consider incrementing a count after you create each box so after they are created you will know how many you have and can use this for whatever code comes next.
    Truly, you have a dizzying intellect.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Montréal, Québec Canada
    Posts
    202

    Re: Get ubound for textbox

    Quote Originally Posted by gtilles
    You may want to consider incrementing a count after you create each box so after they are created you will know how many you have and can use this for whatever code comes next.
    Thanks, already did so, not as clean as I'd like but hey it works!

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