Thanks to all that answered this question. The worst part is that I knew of this pitfall but still failed to recognize it. Hopefully now I have learned my lesson.
Thanks again, Ted ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 07, 2003 2:55 PM Subject: [REBOL] Re: Unwanted Duplicate Data in Text Fields > > Ted: > > > 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.? > > It's a design feature of REBOL that trips everyone up at first because it is > so unlike most of the other languages we've ever used. I wrote off several > hours once to debugging the same problem. > > Even local "variables" have this sort of "persistence" to them. Watch what > these strings do: > > > a-func: func [data /local var1 var2 var3][ > var1: "" > var2: "" > var3: copy "" > > append var1 data > append var2 data > append var3 data > print [var1 "--" var2 "--" var3] > ] > > loop 5 [a-func random/secure "ABCDE"] > > One day, you'll thank Carl for this feature, > > Sunanda. > -- > 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.
