[tw5] TiddlyWiki as BASIC program "data source": a sample program

'🟠 DECLARATIONS
option base 1
MarxBroCount = **{{{ [tag[Marx Brother]count[]] }}}**
dim MarxBro$( MarxBroCount )

'🟠 MAIN PROGRAM
restore MarxBrothers
for i = 1 to MarxBroCount
read MarxBro$(i)
next i

print "The source data (transclusion of tiddler titles from TiddlyWiki: "
print "**{{{ [tag[Marx Brother]] +[sort[]] +[join[,]] }}}**" : print : print
print "Now, the values stored in the array:"
for i = 1 to MarxBroCount
print "MarxBro$(" + i + ") = " + MarxBro$(i)
next i
end

'🟠 DATA
MarxBrothers:
DATA **{{{ [tag[Marx Brother]] +[sort[]] +[join[,]] }}}**

If you are viewing this in Talk.TiddlyWiki, you might find the sample code prettier for viewing in the source Google Groups post.

1 Like