Is there an Array/ DIM thing to make input fields from an input value?

72 views
Skip to first unread message

Ste Wilson

unread,
Feb 18, 2020, 5:37:53 AM2/18/20
to TiddlyWiki
I'm trawling through an old text book and it has some helpful BASIC programs...and just because...I thought...'I know, it would be really usefull for the students to have access to these...lets TWify them'...so..the question then:

Is it possible to enter a number in a field which then creates that number of input fields?

E.g How many apples do you have? 3

would create three input fields:

Apple 1 size=
Apple 2 size=
Apple 3 size=

I know I could do it with IF/ ELSE juggeling or just providing up to say five fields by default (More shouldnt be needed for this application) but just wondered if there was an easier way?

PMario

unread,
Feb 18, 2020, 5:52:30 AM2/18/20
to TiddlyWiki
Hi
Have a closer look at the range operator: https://tiddlywiki.com/#range%20Operator
-m

Mark S.

unread,
Feb 18, 2020, 11:50:46 AM2/18/20
to TiddlyWiki
Be aware that TW doesn't have the complete kit of mathematical operators. You'll hit the wall, for instance, if you want to apply the pythagorean formula.
Reply all
Reply to author
Forward
0 new messages