>>From time to time I get an error when I try to replace a field when editing a cursor in a grid.
>>The cursor is a view with tablebuffering = 5 created from a SQLEXEC() query.
>>
>>Cursor cannot be modified because it contains an unsaved record
>>
>>Any has seen this before and knows how to work around this error?
>
>Usually that happens when you try to Refresh Cursor (or REQUERY View) when they contains modified records, before you issued TABLEUPDATE() or TABLEREVERT()
Thanks, but there was really no Refresh or Requery happening, only a replace. After a long search I found out the culprit. In the grid there is a DynamicCurrentControl and if the current control is empty, then the error would occur. So it's a bug related to the grid. I solved it by creating a dummy object to display instead of leaving the control empty.
Christian Isberner
Software Consultant