-
max index value
Using VB6 I have created myself an array of check boxes. I now want to do a for loop from 1 to the max index number of the check boxes I have in the array. I do not know how to get the max index number of check boxes. I have tried UBound() but that just gives me an error (Compile error: Expected array). Is there some other way to get the max index number ??
dim i as interger
For i = 1 to (max index number??)
'do stuff
next
-
I don't have access to VB6 at the moment, but if I remember correctly, you want the UBound property of the control array, rather than the UBound method:
For I = 1 to ControlName.UBound
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
-
Yep, that works just great
thanks again
Similar Threads
-
By Alphadan in forum VB Classic
Replies: 1
Last Post: 02-14-2009, 07:24 AM
-
Replies: 2
Last Post: 07-19-2005, 06:09 AM
-
By AM003295 in forum VB Classic
Replies: 4
Last Post: 04-25-2005, 04:01 PM
-
Replies: 0
Last Post: 02-16-2005, 12:30 PM
-
By Michael Tzoanos in forum Database
Replies: 5
Last Post: 08-09-2002, 01:07 PM
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks