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

πŸ–₯ Flower Tesselation: Testing DRAW and recursive SUB's

This BAM program inspired by Richard Russell's "Flower-like tesselation" BBC BASIC program posted on Facebook . Created in ord...