SetBlank with inAccess = EvValueAccess.forAdd
Ed Kleban
Ed at Kleban.com
Mon Nov 28 11:58:10 CST 2005
I'm having a bit of difficulty understanding the following paragraph under
"SetBlank":
" Parameter inAccess can be used to speed up SetBlank() if you add records.
In this case you can specify its value forAdd, so Valentina will not save
copies of previouse field values. In the same time you can always use the
default value forUpdate and everyhting will work correctly. "
Does this mean that when you use SetBlank with forUpdate instead of with
forAdd, that it always writes the current value of every field in the buffer
to the current record before setting all fields to blank values?
Or is it clever enough to only write out field values that have changed?
I would think that unless the user issues an explicit "Table.UpdateRecord()"
call that they should not expect modified field values to be transferred to
the table record. Or is the default value of forUpdate intended to be a
"convenience" so that users don't have to remember to call
"Table.UpdateRecord()"?
Somehow I think I'm missing something here.
Thanks!
--Ed
More information about the Valentina
mailing list