Printing out text of all GUI elements in Red language
问题 I am trying to print out text from all GUI elements in following code: sentlist: ["A" "B" "C"] main: function [slist] [ view collect [ repeat i length? slist [ keep compose [ text (slist/:i) field "" return ]] keep [button "Printall" [ repeat i (2 * length? slist)[ print face/parent/pane/(i)/text ]]]]] (main sentlist) It runs all right without any error and text elements' text are properly printed out, but for fields , only last field's entry is printed out for each field. Where is the