StrataFrame Forum

Easiest Way to delete all records from BO without getting cofirm messagebox

http://forum.strataframe.net/Topic21916.aspx

By Leonard P. - 2/11/2009

Hi!

I need to be able to delete all records from BO behind the scenes circumventing confirm delete messages. It would be great if I could just call "bo.clear()" and it sets all rows as deleted.

Is there an easy way to do that?

Thanks.
By Edhy Rijo - 2/11/2009

Hi Leonard,

I use this code in one of my applications, but would also like to see something like VFP ZAP function Hehe

'-- Delete all records in the BO

For I = 0 To PaymentScheduleBO1.Count - 1

     Me.PaymentScheduleBO1.DeleteCurrentRow(True)

Next

By Keith Chisarik - 2/11/2009

Enhancement request!!! BO.zap !

Awesome!

By Edhy Rijo - 2/11/2009

Hi Keith,

Believe it or not, I do have a Zap method in my base BO, but of course the more we have out of the box in the framework, the better. Hehe

By Keith Chisarik - 2/11/2009

I am so stealing that Smile