Saturday, October 14, 2023

🖥 Calendar (a GW-BASIC program ported to BAM)


This BAM program is a port, with mods, of the GW-BASIC "CALENDAR" program by Taung-Chao Lee and Benito Navarro Mtz, as found on Facebook.

The most notable mods:

  • click/touch buttons added previous previous/next month navigation
  • the current date is highlighted with a circle
  • cosmetic changes/additions
The bulk of the programs smarts is the original GW-BASIC code, which I find pretty cool.


Aside, for the giggles:

Say you were to download the program and upload it to your website (because you are a retro/BASIC fiend!), you would include something like the following on any webpage:

<iframe src="https://basicanywheremachine.neocities.org/sample_programs/BAM%20Calendar.prod.run" style="width:300px;height:400px;">

</iframe>


1 comment:

  1. I've just uploaded new versions of those files, fixing a bug with the positioning of the circle to highlight whatever today happens to be.

    ReplyDelete

📚 FUNCTION (and SUB): variable arguments, by default, are "passed by reference"

Preamble A primer on "call-by-reference" vs "call-by-value" BAM HOWTO (BTW:  "call-by-reference" aka "pas...