General information
Category:
The Mere Mortals Framework
I tried it several times and all the records are always deleted. I find something strange because the set-up is like this.
I have three business objects; BizObjA, BizObjB and BizObjC. The primary is displayed in a Treeview which is BizObjA. BizObjB is a child of BizObjA and I defined it in the Builder window. I set it up as when I highlight a node in the treeview (BizObjA), BizObjB is automatically requeried. Then I click my Delete button to delete the record. My codes are the following:
* I requery this because it is not a child of BizObjA
BizObjC.requery()
BizObjC.delete(.F.,"",.T.)
BizObjB.delete(.F.,"",.T.)
BizObjA.delete(.F.,"",.T.)
For BizObjA and BizObjC, only the current record is deleted. But in BizObjB, all records are deleted. I debug it and it's doing the same thing in TABLEUPDATE(.F.) with .F. as for tlDeleteAll parameter.
Thanks a lot again.
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