Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete()
Message
 
To
10/09/2002 16:03:32
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Miscellaneous
Thread ID:
00699027
Message ID:
00699128
Views:
14
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
Map
View

Click here to load this message in the networking platform