I am trying following code to read values from a list to be put into field elements which are also placed in another list:
Red [needs: view]
view [
text "N1:"
ff: field ""
text "N2:"
gg: field ""
do [fldlist: [ff gg]
vv: 5 ww: 10
varlist: [vv ww] ]
button "Click" [
repeat i (length? varlist)
[to-set-path to-word fldlist/i/text: varlist/:i] ] ]
However, it is not working. The error is:
*** Script Error: path fldlist/i/text: is not valid for none! type
*** Where: set-path
*** Stack: view do-events do-actor do-safe to-set-path to-word
I also tried :i
(i)
and (:i)
instead of just i
but it is not working. Where is the problem and how can it be solved? Thanks for your help.