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.?

How do I overcome this since I need to both display the values from the
database and manipulate them from the text field.

Ted


----- Original Message ----- 
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 text in
the
> > 3rd text field, and then click "Forward" the text is not inserted into
'db.
> > However, if I click "Load", then immediately click "Forward" any number
of
> > times, and then enter text into the 3rd or 4th text fields, the 3rd and
4th
> > fields of all records will immediately be set to the value entered.
What is
> > happening?
>
> The problem here is that after you call Forward the database and the field
use
> the SAME string (at the same memory location), so when you change the
field
> string you are also changing the database string.
>
> But before you call Forward, some of the field string and the database
strings
> are different string (=stored in different memory locations).
>
> When you Load the database, you assign the same string of the database
only at
> 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 at all
the
> fields.
>
> I do not think that sharing strings between fields and database is a good
> idea, but i can be wrong.
>
> ---
> Ciao
> Romano
>
> -- 
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
>

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to