Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete()
Message
From
11/09/2002 11:44:50
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00699027
Message ID:
00699371
Views:
17
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
Map
View

Click here to load this message in the networking platform