[REBOL] Antwort: Re: Help!
From: sharriff:aina:med-iq at: 27-Oct-2000 8:35
Hi Elan!
iis extremly nice of you to try to help out! I´ve actually solved the
problem with this code:
(See attached file: prototype-logger.r)
and the "temp-db" looks like this:
(See attached file: medintouch-users-db.shdb)( just a text file with a
renamed extension)
I know its not high-level Rebol programming, but it works, maybe I could
use a tip or two from you. Andrew als sent me his "Associate array
function" also as a solution to this problem.
Much thanks
Sharriff Aina
med.iq information & quality in healthcare AG
Elan
<[rebol--techsc] An: [rebol-list--rebol--com]
ribe.com> Kopie:
Gesendet von: Thema: [REBOL] Re: Help!
[elan--loop--com]
27.10.00
03:25
Bitte
antworten an
rebol-list
Hi Sharriff,
I managed to kidnap a few minutes to review the latest 200 messages on the
list and found your question.
If I understand you correctly then the expression
>> valid-name: select temp-db temp-logname
does not succeed in retrieving the value associated with temp-logname in
the
temp-db block, even when you know that the value of temp-logname is for
sure
contained in the block. temp-db
It is not really possible to answer your question without seeing the
contents
of temp-db.
What does the block temp-db look like?
Elan
[Sharriff--Aina--med-iq--de] wrote:
> Here is a simplified snippet of a sort of user validation that I´m
coding:
> challenge: make object! [ log-name: "sharriff" password: "gong" ]
> temp-logname: to-word challenge/log-name
> temp-password: challenge/password
> validname: select temp-db temp-logname
> validpass: find temp-db temp-password
> either found? validname [either found? validpass [print "go"][print
> "nogo"]] [ print "wrong password"]
>
> The problem is, the outer "Either" never evalutes if "validname" is
true,
> can someone tell me what I´ve overlooked?
>
> Regards
>
> Sharriff Aina
> med.iq information & quality in healthcare AG
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
To unsubscribe from this list, please send an email to
[rebol-request--rebol--com] with "unsubscribe" in the
subject, without the quotes.
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: =?iso-8859-1?Q?prototype-logger.r?
-- Binary/unsupported file stripped by Listar --
-- Type: application/octet-stream
-- File: =?iso-8859-1?Q?medintouch-users-db.shdb?=