tiny basic as a subroutine
#11
(07-31-2023, 02:08 PM)bplus Wrote: @James D Jarvis do you have any sample / demo programs to go with Tiny Basic? specially an example with chain and merge, you have me curious. I never used either in earlier Basics.

Good ones I wrote? I wrote non-exciting ones to test the merge and chain options, but they were likely boring as mud and almost as useful.  

Tinytest.bas
Code: (Select All)
'tinytest
subone=299:'variables and expressions can be used in gosub and goto statements
for x =1 to 10
print x
   a=x
  if x<5 then gosub subone
next x
goto 400
299 'subone
300 print "less then 5"
return
400 'hello there

tinytest2.bas
Code: (Select All)
'Tinytest2
print "well well well"
for n = 1 to a
print n
next n

tinytest3.bas
Code: (Select All)
'tinytest3
cls
print a
Reply


Messages In This Thread
tiny basic as a subroutine - by James D Jarvis - 07-28-2023, 03:37 PM
RE: tiny basic as a subroutine - by bplus - 07-28-2023, 05:20 PM
RE: tiny basic as a subroutine - by bplus - 07-28-2023, 09:17 PM
RE: tiny basic as a subroutine - by mnrvovrfc - 07-28-2023, 09:11 PM
RE: tiny basic as a subroutine - by bplus - 07-31-2023, 02:08 PM
RE: tiny basic as a subroutine - by James D Jarvis - 07-31-2023, 06:29 PM
RE: tiny basic as a subroutine - by bplus - 07-31-2023, 07:35 PM
RE: tiny basic as a subroutine - by bplus - 07-31-2023, 07:46 PM
RE: tiny basic as a subroutine - by bplus - 08-01-2023, 02:36 PM
RE: tiny basic as a subroutine - by bplus - 08-15-2023, 02:45 PM



Users browsing this thread: 10 Guest(s)