General information
Category:
The Mere Mortals Framework
Hi Nerissa.
bizobj.delete(.F., "", .T.) will only delete the currently selected record. Using .T. as the third parameter will issue a TABLEUPDATE even though you are using table buffering. So table buffering shouldn't matter. You may want to put a SET STEP in the bizobj.delete method to see what is going on. Can you make all the records be deleted consistently?
Dan
>My application is currently using bizobj.delete() method. After my bizobj.requery(), I am using the code bizobj.delete(.F.,"",.T.) to delete the record/s read. My understanding is that the first param (.F.) indicates that not all records will be deleted. Only the last record/s read will be deleted. The last param (.T.) indicates that the table affected will be updated immediately by the changes.
>
>However, I am encountering instances wherein when I use
>bizobj.delete(F.,"",.T.), ALL the records of my TABLE are deleted. I am currently using views defined as in "Table buffering". I am just not sure if this has a connection with my problem. What do I need to set or do before calling the delete() method to avoid deleting all my records?
>
>Thanks a lot for all the help.
>
>Nerissa
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only