[REBOL] Re: Getting content from objects in a block
From: tim::johnsons-web::com at: 31-Jul-2001 9:51
Hi Thorsten:
You could try something like the 'get opertor example below until
a wiser head responds:
On Tue, Jul 31, 2001 at 03:46:40PM +0200, Thorsten Moeller wrote:
>
> Hi,
>
> i have a block containing lots of objects. What i want to do is getting the
> text-value from each of this objects with a loop. One object can be accessed
> like "print myblock/1/text". The "1" should be replaced by a counter.
>
> How can i do that?
>> test: [[10 20 30 40][50 60 70 80]]
== [[10 20 30 40] [50 60 70 80]]
>> g: 2
== 2
>> test/:g/1 ; note the use of the 'get operator
== 50
> Thorsten
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.johnsons-web.com