Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] The all function.

From: louisaturk:eudoramail at: 12-Apr-2002 14:43

Rebol friends, I have the following line of code to check to make sure that a record does not already exist, but it always returns none: rec: all [find database code find database chknum]
>> find database code
== make hash! ["boo" make object! [ code: "boo" chknum: "9898" date: 19-Jan-2001 amount: $100....
>> find database 2 chknum
== "9898"
>> rec: all [find database code find database 2 chknum]
== none ; Why is this none???????????????? Futher testing shows where the failure is happening:
>> rec: all [find database code]
== make hash! ["boo" make object! [ code: "boo" chknum: "9898" date: 19-Jan-2001 amount: $100....
>> rec: all [find database 2 chknum]
== none
>> find database 2 chknum
== "9898"
>> all [find database 2 chknum]
== none
>> find database 2 chknum
== "9898"
>>
Why? Louis