[REBOL] Re: Invalid Path Value
From: allenk:powerup:au at: 30-Nov-2000 23:36
----- Original Message -----
From: "Ryan Smith" <[smithry--us--ibm--com]>
To: <[rebol-list--rebol--com]>
Sent: Thursday, November 30, 2000 10:15 PM
Subject: [REBOL] Invalid Path Value
> Can anyone help me with what I am doing wrong at the end of this screen
> dump?
>
> Thank you.
<-SNIPPED CODE->
> >> print rotation-count
> 1
> >> print rotation-file/1
> 1,2,3,4,5
> >> print rotation-file/rotation-count
> ** Script Error: Invalid path value: rotation-count.
> ** Where: print rotation-file/rotation-count
> >>
Hi Ryan,
If you want to use the value of rotation-count rather than the word
rotation-count as the path then you can use this notation.
print rotation-file/:rotation-count
Using the colon "gets" the value of the word rotation-count
Cheers,
Allen K