I'm writing a fairly hefty modular synthesizer in vb6 (silly!) and have come across and interesting problem. I'm using a long integer to reference all the little machines. Having succesfully got 3 machines working nicely together I tried to put a forth in and got an overflow.
Now, correct me if I'm wrong but a long integer should be able to handle a number up to 2,147,483,647 so can anyone guess why VB6 is overflowing at 40,000?
Private Sub Form_Load() Dim t As Long t = 4 * 10000 End Sub
Private Sub Form_Load() Dim t As Long t = 40000 End Sub
...seems to work fine. I'm stumped!