Updating all records

Robert Brenstein rjb at robelko.com
Thu Feb 24 15:22:30 CST 2005


>Hello Robert,
>
>While searching 'updateallrecords' in the list archive, I found this 
>reply from Ruslan :
>
>"You modify NOT first record.
>You modify just VALUES in RAM buffer.
>And when you do UpdateAll() all 10 records get that new value"
>
>How to modify values in the RAM buffer without modifying records ?
>
>Thanks,
>
>Roger;

It was explained in one of the posts in that thread how to do it, if 
I am not mistaken.

When you fetch a record, its values are kept in a buffer, just temp 
memory location. When you do SetField, you are actually modifying the 
buffer only. It gets transferred to the database upon UpdateRecord or 
AddRecord.

You should be able to just replace UpdateRecord with UpdateAllRecords 
in your code. If that does not work, it can be a bug in vxmcd.

Robert


More information about the Valentina mailing list