[REBOL] Why this error message?
From: louisaturk::eudoramail::com at: 7-Jul-2001 21:49
Hi friends,
I have added some fields to the database you all have been helping me
with. I can still add records to the database, then modify the records as
before. After exiting the database I can print the data file and the data
is (or at least seems to be) correct. But when I start the database
program (ml-db.r) again it cannot load the data file, and it gives the
following error message:
>> do %ml-db.r
** Script Error: Invalid argument: make
** Where: load-data
** Near: item: make record item
repend
>>
This message is related to Carl's function:
load-data: has [data] [
if exists? db-file [
data: load/all db-file
clear database
if data [
foreach item data [
item: make record item
repend database [item/name item]
]
]
database: make hash! database
]
]
If I turn trace on, and then run the program, the last part of the trace is
as follows:
Trace: clear (word)
Trace: database (word)
Result: [] (block)
Trace: if (word)
Trace: data (word)
Trace: [
foreach item data [
item: make record item
repend database [item/name item]
]
] (block)
Trace: foreach (word)
Trace: data (word)
Trace: [
item: make record item
repend database [item/name item]
] (block)
Trace: item: (set-word)
Trace: make (word)
Trace: record (word)
Trace: item (word)
** Script Error: Trace: "Invalid argument:" (string
)
Trace: :arg1 (get-word)
Invalid argument: make
** Where: load-data
** Near: item: make record item
repend
>>
Any idea what the problem might be?
Louis