User Profile
Collapse
-
Blarghanaught replied to How do I add numbers into a static array to a running total? This is for VB 6.0in Visual BasicOkay, I've done that! Hm.. I tried running the program just to see what would happen and I got this error: 'Compile Error: Invalid attribute in Sub or Function' And it highlighted Public intNum as Integer. -
Blarghanaught replied to How do I add numbers into a static array to a running total? This is for VB 6.0in Visual BasicDo you know which variables to set to Global? I'm guessing you mean these:
Should it be intNum and dblSum? Or is it just one?Code:Dim intNum As Integer Dim dblSum As Double Dim dblAverage As Double Dim intCounter As Integer
Leave a comment:
-
Blarghanaught replied to How do I add numbers into a static array to a running total? This is for VB 6.0in Visual BasicI followed it, but it still doesn't work so far. I find it funny that I made that mistake. :P I hope I'll be able to fix it soon... >_<Leave a comment:
-
Blarghanaught replied to How do I add numbers into a static array to a running total? This is for VB 6.0in Visual BasicThanks man, is there anything else I have to change or do to make the program work?Leave a comment:
-
Blarghanaught started a topic How do I add numbers into a static array to a running total? This is for VB 6.0in Visual BasicHow do I add numbers into a static array to a running total? This is for VB 6.0
I'm having some trouble coding this and I found myself very stumped. This is my code so far. I know I made some errors because it won't run correctly.
...Code:'intTemp Program Option Explicit Private Sub cmdCalc_Click() Dim intTemp() As Integer ReDim intTemp(7) As Integer Dim intNum As Integer Dim dblSum As Double Dim dblAverage As Double Dim intCounter As Integer
No activity results to display
Show More
Leave a comment: