Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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 ? Steven White City of Bloomington 1800 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) [steven--white--ci--bloomington--mn--us]
>>> [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 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" <[rotenca--telvia--it]> To: <[rebol-list--rebol--com]> 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