TiddlyWiki as BASIC program "data source": a sample program

32 views
Skip to first unread message

Charlie Veniot

unread,
Dec 27, 2022, 10:38:47 PM12/27/22
to TiddlyWiki
```
'🟠 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[,]] }}}

```

Charlie Veniot

unread,
Dec 27, 2022, 10:40:25 PM12/27/22
to TiddlyWiki
If you are viewing this in Talk.TiddlyWiki, you might find the sample code prettier for viewing in the source Google Groups post.
Reply all
Reply to author
Forward
0 new messages