Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BAM: [new] _MAPSET and _MAPGET
#4
Mine was a ridiculous use case scenario.


I am not particularly good at inventing hypothetical examples.

Maybe this is better:

Code: (Select All)
INIT:

  _initaudio

  _mapset("CARROT", 1)
  _mapset("CORN", 2)
  _mapset("POTATO", 3)

MAIN_PROGRAM:

  getselection:
    input "Search for recipes: enter one ingredient:", selection$
    selection$ = ucase$(selection$)
    if _mapget(selection$) = "" then beep : print "sorry, no recipes for " + selection$ : goto getselection

  on _mapget(selection$) gosub CARROT, CORN, POTATO

  goto getselection

  end

SUBROUTINES:

  CARROT:
    print "setup special processing for carrot-related recipes and info"
    RETURN

  CORN:
    print "setup special processing for corn-related recipes and info"
    RETURN

  POTATO:
    print "setup special processing for potato-relatd recipes and info"
    RETURN
Reply


Messages In This Thread
BAM: [new] _MAPSET and _MAPGET - by CharlieJV - 03-11-2023, 06:46 PM
RE: BAM: [new] _MAPSET and _MAPGET - by CharlieJV - 03-11-2023, 11:18 PM
RE: BAM: [new] _MAPSET and _MAPGET - by Petr - 03-12-2023, 10:41 AM
RE: BAM: [new] _MAPSET and _MAPGET - by CharlieJV - 03-12-2023, 04:16 PM
RE: BAM: [new] _MAPSET and _MAPGET - by CharlieJV - 03-12-2023, 04:28 PM
RE: BAM: [new] _MAPSET and _MAPGET - by Petr - 03-12-2023, 05:29 PM
RE: BAM: [new] _MAPSET and _MAPGET - by CharlieJV - 03-12-2023, 06:28 PM
RE: BAM: [new] _MAPSET and _MAPGET - by Petr - 03-12-2023, 06:55 PM
RE: BAM: [new] _MAPSET and _MAPGET - by CharlieJV - 03-12-2023, 08:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  BAM Draw CharlieJV 9 1,979 11-07-2023, 10:27 PM
Last Post: James D Jarvis
  BAM: New version CharlieJV 0 488 06-29-2023, 02:22 AM
Last Post: CharlieJV
  BAM App Personalizer (a GUI to personalize BAM programs) CharlieJV 0 477 01-06-2023, 03:48 AM
Last Post: CharlieJV
  BAM FIX: disappearing BAM menu bar on mobile web browsers CharlieJV 0 474 12-11-2022, 07:00 PM
Last Post: CharlieJV
  BAM Features Set: "Powerwash", "BAM System Update", "TW System Update" CharlieJV 1 742 11-10-2022, 05:16 AM
Last Post: CharlieJV

Forum Jump:


Users browsing this thread: