|Logical records: If SetDeleted() is TRUE, deleted records are not logically visible. That is, database operations which operate on logical records will not consider records marked for deletion. Note, however, that if SetDeleted() is TRUE when the current record is marked for deletion, the record remains visible until it is no longer the current record. Shared mode: For a shared database, DBDelete() requires the current record to be locked.|
1cLast := "Winston" 2DBUseArea(TRUE, "DBFNTX", "sales", "Sales", TRUE) 3Sales->DBSetIndex("LastName") 4IF Sales->DBSeek(cLast) 5 IF Sales->RLock() 6 Sales->DBDelete() 7 QOut("Record deleted: ", Sales->Deleted()) 8 ELSE 9 QOut("Unable to lock record...") 10 ENDIF 11ELSE 12 QOut("Not found") 13ENDIF
Copyright © 2015-2022 XSharp BV, All rights reserved. The VO SDK classes are Copyright © Computer Associates.