Visual Basic Arrays

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

henrys212

Thread Starter
Joined
Oct 6, 2008
Messages
2
Its been a while since I did some programming so I am a bit rusty. I was asked if I can create a small program that will list a few checkboxes and on the botton of the page should be a total amount of check boxes that are checked.

I know that the best way to do it is by creating an array. I am using Visual Basic 2005. I recall that in the previous versions inorder for me to create multiple controls into an array all I had to do is copy one control and paste it. VB would prompt me if I want to create these objects into an array. I tried doing that with VB 2005 and its not working. Does anyone have any idea how I can make all my check boxes to be an array?

Thank You for your help in advance.
 
Joined
Jun 8, 2001
Messages
2,583
You don't need an array unless you have a huge amount of check boxes.
pseudo code...

If ck_box1 is yes then
Total = Total + amount1
End if
IF ck_box2 is yes then
Total = Total + amount2
End if
 

henrys212

Thread Starter
Joined
Oct 6, 2008
Messages
2
I plan on having in the future over a 100 check boxes. How would I do it then?
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top