|
-
Aug 10th, 2000, 02:58 PM
#1
Thread Starter
New Member
I'm a beginner that just can't get it through his dumb head what must be a very simple task - sum contents of a listbox.
Private Sub CommandButton2_Click()
Dim a As Single
For x = 0 To ListBox1.ListCount - 1
a = ListBox1.List(x)
b = a + x
Next
TextBox2.Text = b
End Sub
Any help would be very much appreciated.
-
Aug 10th, 2000, 03:07 PM
#2
transcendental analytic
change
b = a + x
to
b = a + b
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 11th, 2000, 01:47 PM
#3
Thread Starter
New Member
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
|
Click Here to Expand Forum to Full Width
|