Results 1 to 8 of 8

Thread: I 'd like to know how many Textbox the user have write in it? have

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2002
    Location
    Canada
    Posts
    50

    I 'd like to know how many Textbox the user have write in it? have

    Hi!
    I got a bunch of textbox (arrays) ,
    I 'd like to know how many Textbox the user wrote in it?


    For c = 0 To Combo1.Count - 1

    If Text1(c).Text = "" then Label1.Caption = Text1(c).???

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    VB Code:
    1. dim i as integer
    2. dim Total as integer
    3. Total = 0
    4. for i = 0 to text1.UBound
    5.     if Text1(i).Text <> "" then
    6.         Total = Total + 1
    7.     end if
    8. next
    9. msgbox Total & " Textboxes were typed in"

  3. #3

    Count

    For a = 0 to NumTextBoxes
    If Text1(a).Text <> "" then
    NumFilled = NumFilled + 1
    End If
    Next

    Label1.caption = NumFilled

  4. #4
    Lively Member
    Join Date
    Feb 2002
    Posts
    98

    try

    Dim

    For c = 0 To Combo1.Count - 1

    If Text1(c).Text <> "" then
    Count=Count+1
    end if
    next
    Count.caption=Count

  5. #5
    Lively Member
    Join Date
    Feb 2002
    Posts
    98

    I hate when i'm late :) and left dim sitting by itself


  6. #6

    Thread Starter
    Member
    Join Date
    Feb 2002
    Location
    Canada
    Posts
    50

    Thank's every one!

    Thank's every one for your fast answering, unless 5 min.

    This work's fine:

    For A = 0 To Text2.Count - 1
    If Text2(A).Text <> "" Then
    NumFilled = NumFilled + 1
    End If
    Next

    Label9.Caption = NumFilled

  7. #7
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: I hate when i'm late :) and left dim sitting by itself

    Originally posted by Incognito44
    and left dim sitting by itself
    lol.. thats what the edit button is for

    sometimes you can change your bad code before any one sees it.. i know i do

  8. #8
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Re: Re: I hate when i'm late :) and left dim sitting by itself

    Originally posted by kleinma


    lol.. thats what the edit button is for

    sometimes you can change your bad code before any one sees it.. i know i do
    I know me too....
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

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