Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] noob question: why 3 different outputs

From: dougedmunds::gmail at: 22-Apr-2008 15:18

Hello, Can someone explain what is going on that causes these three very similar (to me!) inputs to have such dissimilar outputs? Thanks. Doug Edmunds ;-------code starts REBOL [Title: "block creation tests"] myfunc: func [ myfields ][ print "print block:" print myfields print "print foreach:" foreach myfield myfields [ print get myfield ] print "---" ] view layout [ myfield1: field "doug" myfield2: field "was" myfield3: field "here" mybutton1: button "button 1" [ myfields1: [myfield1/text myfield2/text myfield3/text] print "button1" myfunc [myfields1] ] mybutton2: button "button 2" [ m1a: myfield1/text m2a: myfield2/text m3a: myfield3/text myfields2: [m1a m2a m3a] print "button2" myfunc [myfields2] ] mybutton3: button "button 3" [ m1b: myfield1/text m2b: myfield2/text m3b: myfield3/text print "button3" myfunc [m1b m2b m3b] ] ]