[ALLY] Re: object to layout?
From: larry:ecotope at: 30-Apr-2001 15:47
Hi Ingo
Fun question. Here's my cut.
Third OBJECT turns the object back to a block of setword value pairs. Using
your example:
>> third a
== [t1: "Text1" t2: "Text2"]
Then it is easy to manipulate:
>> b: copy []
== []
>> foreach [setword string] third a [
append b compose [
text (form :setword) (:setword) field (string) tab]]
== [text "t1" t1: field "Text1" tab text "t2" t2: field "Text2" tab]
This is close to what you want.
Perhaps others see a more elegant solution.
-Larry