[REBOL] Re: VID question
From: henrik:webz:dk at: 30-Sep-2007 21:01
On 30/09/2007, at 6.25, Kai Peters wrote:
> Hi ~
>
> I have a layout with an info for every day of a month, named
> inf1 through inf31 which I use to display daily time tallies.
>
> My SQL queries return cursors that do not have a record for days
> on which there was no work performed, thus a sample cursor
> might look like this:
>
> [
> [ 01-Oct-2007 4.5 ]
> [ 14-Oct-2007 8.0 ]
> [ 15-Oct-2007 7.5 ]
> [ 31-Oct-2007 7.5 ]
> ]
Let's explore SET-FACE a bit:
set-face inf31 7.5
If this prints 7.5 in your inf31 field, then we can say:
foreach row result [set-face to-word join 'inf row/1/day row/2]
That should do it.
--
Regards,
Henrik Mikael Kristensen