|
-
Aug 22nd, 2002, 12:23 PM
#1
Thread Starter
Member
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).???
-
Aug 22nd, 2002, 12:27 PM
#2
VB Code:
dim i as integer
dim Total as integer
Total = 0
for i = 0 to text1.UBound
if Text1(i).Text <> "" then
Total = Total + 1
end if
next
msgbox Total & " Textboxes were typed in"
-
Aug 22nd, 2002, 12:28 PM
#3
Member
Count
For a = 0 to NumTextBoxes
If Text1(a).Text <> "" then
NumFilled = NumFilled + 1
End If
Next
Label1.caption = NumFilled
-
Aug 22nd, 2002, 12:29 PM
#4
Lively Member
try
Dim
For c = 0 To Combo1.Count - 1
If Text1(c).Text <> "" then
Count=Count+1
end if
next
Count.caption=Count
-
Aug 22nd, 2002, 12:31 PM
#5
Lively Member
I hate when i'm late :) and left dim sitting by itself
-
Aug 22nd, 2002, 12:39 PM
#6
Thread Starter
Member
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
-
Aug 22nd, 2002, 12:43 PM
#7
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
-
Aug 22nd, 2002, 12:46 PM
#8
Need-a-life Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|