[REBOL] Re: Multiple Keys
From: ryanc:iesco-dms at: 13-Jul-2001 14:19
What do you mean by "database?"
database: ["col1" "col2" "col3" "xxx1" "xxx2" "xxx3"]
database: [["col1" "col2" "col3"] ["xxx1" "xxx2" "xxx3"]]
or something else?
Anyways is this what you want?
if all [not db-mark: find database code not find db-mark chknum] [
insert-data code chknum date amount special
Dr. Louis A. Turk
> Hi Rebol Experts,
> I need to use two keys in order to search for unique records in a database
> (to make sure I don't insert duplicates). The following line does not work:
> if all [not find database code not find database chknum] [
> insert-data code chknum date amount special
> The problem is that the two finds are finding different records. I need
> for both finds to check each record in the database simultaneously for the
> two keys.
> It seems to me that this should have a real simple answer, but I was up too
> late last night trying to finish this program, and now my brain doesn't
> want to function. :>)
> Do I perhaps need a new function here?
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.