[REBOL] Re: an awful 'to-word bug...
From: Christophe:Coussement:mil:be at: 10-Sep-2003 12:44
Hi Anton,
> I am interested why you need to do this.
> How is your code used.
> Can you show us some real example data?
>
> Anton.
>
USE CONTEXT
-----------
Scales evaluation of psychotechnical testing are stored into a MS SQLServer DB
There is one row per scale.
I need to get those data, reformat it for easier access, and compose a report which will
be submitted to the psychologist who will evaluate the client.
EXAMPLE
-------
1. Get data from DB:
["84040942" "10-4-2002 " 6 "CP" "Ac "
"25.00" "46.00 "]
["84040942" "10-4-2002 " 6 "CP" "Ai "
"23.00" "42.00 "]
which are: ['client_id 'comparution_date 'test_id 'test_name 'scale name 'raw_score 'standard_score]
2. reformat the data, which become:
results: [cp [test_name "CP" test_date "10-4-2002" Ac [raw "25.00" std "46.00"] Ai [raw
"23.00" std "42.00"]]
3. use those reformated data for reporting:
ac: results/cp/ac/std
ai: results/cp/ai/std
report: compose/deep load pdf-report-template
in which 'pdf-report-template is a "pdf-maker"-based document definition where ea we
find:
textbox 82 13 30 5 [font Courier 4 "Lp = " (ac)]
All those handling results into a dynamic created PDF report.
More than 200 data/clent are handled the same way, which results in 5 reports.
Hope this answers your question ;-)
==xtof