Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable stuck on 24 bits
#11
Quote:I see what I did. I was misusing the DIM...AS... statement with a variable list. It's something I remember from way back, using that with lists of variables can give unexpected results and it's safer and no more difficult to declare variables one at a time. Thanks again!

Now you can say the DIM AS TYPE and then do a list for that type eg

```Dim As Long MyLong1, MyLong2, MyLong3 ' <<< all 3 are long```

```
Type MyType
As Integer x, y, z
As _Unsigned Long fg, bg
End Type```

But Yes when you list variables signally line by line you can also document their purpose with comments! Good programming practice specially for big projects.
b = b + ...
Reply




Users browsing this thread: 1 Guest(s)