photo in rebodex
[1/3] from: rcm:formix:au at: 20-Jun-2007 9:14
Hello there,
I'm trying to put a photo into a Rebodex of people, but can't make
img: image 200x300 load rejoin ["%" filename/text] ;;; filename/text
reads fred.png
work unless I refer explicitly to the individual file qua %fred.png
Would someone please tell me how to do this?
Regards, Rosemary
--
Jeeves shimmered out and came back with a telegram.
[2/3] from: gregg::pointillistic::com at: 19-Jun-2007 17:36
Hi Rosemary,
RdD> img: image 200x300 load rejoin ["%" filename/text]
REJOIN coerces to the type of the first value in the block, in this
case a string, so REJOIN will return "%fred.png". LOAD them converts
that to a file, so you could just do:
to file! get-face filename
If you're doing it inside LAYOUT, it should work, even without
parenthesizing it.
Do you get nothing? An error? Does the file exist? Have you probed the
result to make sure it does, indeed, contain the filename you expect?
(silly questions, I know, but... :)
-- Gregg
[3/3] from: rcm::formix::com::au at: 21-Jun-2007 9:18
Dear Gregg,
Thanks for that.
It showed up okay as %fred.png, but loaded nothing ... I hadn't
realised rejoin made it a string.
Regards, Rosemary
--
Jeeves shimmered out and came back with a telegram.
On 20/06/2007, at 9:36 AM, Gregg Irwin wrote: