Just wanted to let you know that it can be done even more simple. This comes
from http://www.rebol.com/howto.html
I have found some very useful stuff in this document and I regret there is
only one fairly hidden link to it on the website. IMHO it should have a
direct link to it in the left column.
Simple Databases
Blocks of Values
REBOL is perfect for storing a wide range of data values, so can be used for
creating databases up to and beyond several thousand records. This is useful
for smaller database applications such as mailing lists, membership rosters,
address books, financial data, and more.
Everything in the REBOL language from databases to code is stored as blocks
(surrounded with []). Something as simple as the days of the week can be
written as:
weekdays: [
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
]
And printed with:
print ["Today is" pick weekdays now/weekday]
----- Original Message -----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 20, 2000 9:12 AM
Subject: [REBOL] .r to html monthly calendar prelude Re:
Russell [EMAIL PROTECTED]
The simple way, in REBOL, to convert the day-of-week integers, 0 to 6, to
the corresponding strings, Sunday, Monday, etc is to create the block
dowdb: [0 "Sunday" 1 "Monday" 2 "Tuesday" 3 "Wednesday" 4 "Thursday" 5
"Friday" 6 "Saturday"]
then select dowdb 1 returns "Monday", etc.