[REBOL] Re: Unwanted Duplicate Data in Text Fields
From: rotenca:telvia:it at: 7-Nov-2003 21:35
> But why is the text that is entered into one text field automatically
> propagated to all of the other empty fields in every record without
> explicitly specifying it, i.e., after entering the text, I never insert the
> value in the 3rd text field into db/1/3 and certainly not into db/1/4,
> db/2/3, db/2/4, etc.?
Because you are using the SAME string also for different database fields:
foreach line data-in [
record: parse/all line ","
loop 2 [append record ""] ;<------
append/only db record
]
"" is always the same string, you must use
copy ""
to create different strings.
---
Ciao
Romano