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

πŸ–₯ Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...