oDBFDataSet:Delete() problem?
Publicado: Lun Feb 09, 2009 9:46 pm
Here's my code:
if MsgCancelOk("Delete selected record?")
::oDBFDataSetApplications:Delete()
::oDBFDataSetApplications:UpDateControls()
// ::oDBBrowseApplications:Refresh()
endif
I can confirm in DBF Explore that the record has been deleted, yet it still
displays in the DBBrowse and in the other data controls on the form. I have
SET DELETED ON, so I don't know what's going on here. For test purposes,
there is just one record in the database and the database is not indexed.
With linked controls, I don't know that it is necessary to issue the
UpDatecontrols() or the Refresh(), but I tried them just to see if it made a
difference.
TIA,
Gary
if MsgCancelOk("Delete selected record?")
::oDBFDataSetApplications:Delete()
::oDBFDataSetApplications:UpDateControls()
// ::oDBBrowseApplications:Refresh()
endif
I can confirm in DBF Explore that the record has been deleted, yet it still
displays in the DBBrowse and in the other data controls on the form. I have
SET DELETED ON, so I don't know what's going on here. For test purposes,
there is just one record in the database and the database is not indexed.
With linked controls, I don't know that it is necessary to issue the
UpDatecontrols() or the Refresh(), but I tried them just to see if it made a
difference.
TIA,
Gary