** DeleteBill Method **delete records related to the bill ** Call another method called insertlog m.llSuccess = this.insertlog() if m.llSuccess ; then for i = 1 to 30 begin transaction if tableupdate(2,.t.,'table1') ; then if tableupdate(2,.t.,'table2') ; then if tableupdate(2,.t.,'table3') ; then m.llSuccess = .t. endif endif endif if m.llSuccess ; then end transaction exit esle rollback endif next endif **Insertlog method insert into table3 values ("Bill deleted") for i = 1 to 30 begin transaction if tableupdate(2,.t.,'table3') ; then m.llSuccess = .t. endif if m.llSuccess ; then end transaction exit esle rollback endif next return m.llSuccessChanges in table1,table2 were committed but not in table3.
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature