Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-03 Thread Sven Barth
Am 02.02.2012 21:22, schrieb waldo kitty: On 2/1/2012 17:13, Sven Barth wrote: Are you storing pointers to records in your collection? If so then just replace the field's value. The change will then be immediately visible for every other code part that holds a reference to this record. thanks

Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-03 Thread waldo kitty
On 2/3/2012 05:07, Sven Barth wrote: Am 02.02.2012 21:22, schrieb waldo kitty: PSCRec(aSatCatColl^.At(idx))^.satname^ := asatname; the data is changing but i'm suspecting that i need to be doing something more because with the above line in place, i'm getting a lot of errors like the

Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-02 Thread waldo kitty
On 2/1/2012 17:13, Sven Barth wrote: Are you storing pointers to records in your collection? If so then just replace the field's value. The change will then be immediately visible for every other code part that holds a reference to this record. thanks for your reply, sven... you've been a big

[fpc-pascal] replace one field of a record in a collection...

2012-02-01 Thread waldo kitty
i've gone brain dead after a few days at my $$$ job and i cannot figure out how to replace one field of a record in a collection :/ i'm looking at my existing code that does something similar but it is replacing the entire record and that's too much as well as the fact that the two records

Re: [fpc-pascal] replace one field of a record in a collection...

2012-02-01 Thread Sven Barth
Am 01.02.2012 21:21 schrieb waldo kitty wkitt...@windstream.net: i've gone brain dead after a few days at my $$$ job and i cannot figure out how to replace one field of a record in a collection :/ i'm looking at my existing code that does something similar but it is replacing the entire record