[REBOL] Re: Unwanted Duplicate Data in Text Fields
From: Steven:White:ci:bloomington:mn:us at: 7-Nov-2003 14:37
Sorry if this is totally wrong, but does this have something to do with
the "PARA object"? I refer to the cookbook
I do not understand this AT ALL, yet. Do you have to assign data as
f1/text: copy db/1/1
City of Bloomington
1800 W Old Shakopee Rd
Bloomington MN 55431-3096
>>> [tserpa--earthlink--net] 11/07/03 01:36PM >>>
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
value in the 3rd text field into db/1/3 and certainly not into db/1/4,
db/2/3, db/2/4, etc.?
How do I overcome this since I need to both display the values from
database and manipulate them from the text field.
----- Original Message -----
From: "Romano Paolo Tenca" <[rotenca--telvia--it]>
Sent: Friday, November 07, 2003 12:50 PM
Subject: [REBOL] Re: Unwanted Duplicate Data in Text Fields
> Hi Ted,
> > In the code below, after I click "Load", if I immediately enter
> > 3rd text field, and then click "Forward" the text is not inserted
> > However, if I click "Load", then immediately click "Forward" any
> > times, and then enter text into the 3rd or 4th text fields, the 3rd
> > fields of all records will immediately be set to the value
> > happening?
> The problem here is that after you call Forward the database and the
> the SAME string (at the same memory location), so when you change
> string you are also changing the database string.
> But before you call Forward, some of the field string and the
> are different string (=stored in different memory locations).
> When you Load the database, you assign the same string of the
> these 2 fields:
> > f1/text: db/1/1
> > f2/text: db/1/2
> When you click Forward, you assign the same string of the database