Variable stuck on 24 bits - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Variable stuck on 24 bits (/showthread.php?tid=2037) Pages:
1
2
|
RE: Variable stuck on 24 bits - bplus - 09-26-2023 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. |