Counting Text Boxes Returned

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NeedHelpFast
    New Member
    • Feb 2007
    • 1

    Counting Text Boxes Returned

    Hi there I have a system that pulls information out of a database and replaces some of the words with text boxes.

    I am struggling trying to find out the number of text boxes contained on a page there must be a way to count the controls does anyone know how to do this??
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by NeedHelpFast
    Hi there I have a system that pulls information out of a database and replaces some of the words with text boxes.

    I am struggling trying to find out the number of text boxes contained on a page there must be a way to count the controls does anyone know how to do this??
    u've to use for each loop as
    Code:
     
    dim Ctrl as control
    for each ctrl in me.controlls
    if typeof ctrl is textbox then 
    ' do the task here
    end if
    next

    Comment

    Working...