Saturday, February 5, 2022

New Functionality: Toe-Dip into Local Storage interaction

 Just added to BASIC Anywhere Machine:

  • SetLocalStorageItem(key, value)
  • GetLocalStorageItem(key)
Sample BASIC program:

SetLocalStorageItem ("salutation", "howdy, buddy")
Print GetLocalStorageItem ("salutation")
SetLocalStorageItem (1, 5)
Print GetLocalStorageItem (1)

The parameters are type-agnostic.  Although atypical for a BASIC programming language, BASIC Anywhere Machine's BASIC implementation (a customised version of wwwBASIC) is running on javascript.

No comments:

Post a Comment

πŸ–₯ Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...