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

πŸ–₯A "10PRINT" Variant, BAMified

This program by Charlie Veniot is a port and mod of Ian Witham's C64 program found in this YouTube video. New colours are randomly proje...