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??)
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
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
By Alphadan in forum VB Classic
Last Post: 02-14-2009, 07:24 AM
Last Post: 07-19-2005, 06:09 AM
By AM003295 in forum VB Classic
Last Post: 04-25-2005, 04:01 PM
Last Post: 02-16-2005, 12:30 PM
By Michael Tzoanos in forum Database
Last Post: 08-09-2002, 01:07 PM
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