Ashley:
> Not trying to start a flame-war here, but the few non-IT folks I've spent
> two or so hours with in REBOL have walked way at least able to do something
> in REBOL on their own, while I doubt I'd get much past the IDE of aforesaid
> languages (let alone headers, conditional compilation, etc).
I tend to use Rebol for "glueware" -- short little utilities that connect
existing applications, or add value to something proprietary. And, as I work
mainly at high speed for non-profits, I don't always have time to develop
proper "user settings" or configurations screens.
So my users end up with text-based "ini" (for windows old-timers) files for
settings they have control over.
I've found raw Rebol works well in these instances. Here are two examples:
This first one is just an object for configuration settings:
==================
Rebol [Title: "User settings"]
UserSettings: make object!
[
;; =================
;; Debugging options
;; =================
check-tree: true ;; Set to false if the code is
;; running too slow for you. This
;; will bypass a lot of internal checking
;; -----------
;; Screen size
;; -----------
;; adjust these values to change the
;; size of the application's windows.
;; Remember they are percentages
;; of your monitor's size !!
;; See page 47 of your user manual for details
Window-depth: 80
Tree-panel-width: 35
Data-panel-width: 40
] ; object
==================
The second (which is a list of email addresses and when *not* to send some
monthly reports) is just a set of lines with an email address and an optional
block on each:
==================
[EMAIL PROTECTED] ;; never send!!
[EMAIL PROTECTED] [jan mar may jul sep nov] ;; bi-monthly
[EMAIL PROTECTED] [jul2002 aug2002 sep2002] ;; not this quarter
[EMAIL PROTECTED] [2003] ;; nothing for next year!!
==================
Of course, I have to run some validation against the "ini" files, but a 'try
block falling back to some default settings goes a long way towards getting
the application on the air with the minimum of fuss.
Sunanda.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.