[REBOL] Re: Unwanted Duplicate Data in Text Fields
From: greggirwin:mindspring at: 7-Nov-2003 13:29
TS> But why is the text that is entered into one text field automatically
TS> propagated to all of the other empty fields in every record without
TS> explicitly specifying it
Because of this line:
loop 2 [append record ""]
If you change it to
loop 2 [append record copy ""] ; << note the added COPY
you should get the expected result.
When you tell REBOL to use "" each time, it uses the *same* string for
all of them, not individual copies of an empty string. When you change
one, they all changed because they're all pointing to the same place
in memory where that one string lives, which they are all referring to.