blue circle isn't drawing and print isn't working? - 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: blue circle isn't drawing and print isn't working? (/showthread.php?tid=3057) Pages:
1
2
|
RE: blue circle isn't drawing and print isn't working? - SMcNeill - 09-21-2024 (09-21-2024, 04:05 AM)madscijr Wrote: It's single because that's the default type for an unsuffixed variable not explicitly DIMmed as something else. Exactly. And that's basically what your original issue was. You had this basic code: DIM x~& x = 123 So the x you were using was SINGLE (which won't hold blue color channels due to rounding in scientific notation), even though all your DIM statements were for x~&. Option Explicit would've caught the issue for you in a second. RE: blue circle isn't drawing and print isn't working? - TerryRitchie - 09-21-2024 (09-21-2024, 05:40 AM)SMcNeill Wrote: Option Explicit would've caught the issue for you in a second.The very reason I never program without OPTION _EXPLICIT as the first line of code. RE: blue circle isn't drawing and print isn't working? - madscijr - 09-21-2024 (09-21-2024, 12:10 PM)TerryRitchie Wrote:I usually use it myself, was just rushing here!(09-21-2024, 05:40 AM)SMcNeill Wrote: Option Explicit would've caught the issue for you in a second.The very reason I never program without OPTION _EXPLICIT as the first line of code. It's a very helpful tool for avoiding some of these issues right out of the gate. |