I posted a question last week and have yet another...I'm new to VB programming and am not real familiar with the code, but I am familiar with the concepts.
I have one simple form...a very small form with just a few items. All I'm going to need to do is assign values to check boxes, make sure at least ONE check box is checkmarked and then when the user clicks CALCULATE it gives them a running total...or if they click END it shuts down. Simple!
I'm working with two parts of my little sample application, the first one has three menu choices in the form of checkboxes. Each check box has a monetary value assigned to it. I'm not sure what the code is to declare these values...do I declare them at the beginning as an array?? For instance I have chkBox1, chkBox2, chkBox3. I'm puzzled by the difference between assigning these boxes their own value or assigning them string values in an array DIM statement? I basically need a dollar value to each box and a validity check to make sure the user checks at least ONE of these check boxes when it's time to caluclate.
At the bottom of thise form I have about six more check boxes. Each one of these is unique and the user can check as many as they want...they all have the same value assigned...let's say $100.00. For each one of these checkmarked, it adds to the total. So when the user clicks on CALCULATE...it takes the total of all checked boxes and displayes them in a text box called txtTotal.
I'm a little bit unsure on where or how I should declare these actually. Should all the code be under the CALCULATE button or does some of it get loaded under the Form itself? Thanks!!