StrataFrame Forum

DeleteCurrentRow returns 1 even when no records are delete

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

By Scott - 9/5/2006

I just noticed that if no records are deleted when calling the DeleteCurrentRow method of a business object 1 is still returned,  I beleive that 0 should be returned, right?

I my situation the BeforeDelete event is setting e.cancel to true and no other code is really getting run in the DeleteCurrentRow method.  Since lnReturn is being initalized to 1, 1 is being returned.

Hope this helps.

By StrataFrame Team - 9/6/2006

I'll take a look at that... thanks for the heads up Smile
By StrataFrame Team - 9/6/2006

Actually, the return value was initialized to 0, and it was never getting set to 1 when a record was only marked as deleted, but I fixed it Smile
By Scott - 9/6/2006

Ben Chase (09/06/2006)
Actually, the return value was initialized to 0, and it was never getting set to 1 when a record was only marked as deleted, but I fixed it Smile

In my source it was being initialized to 1, gues it must be old.  I just now ran into the not getting set to 1 problem if the record was only marked as deleted.  Thanks for the info.

By StrataFrame Team - 9/7/2006

Yeah, either way... whatever value it was initialized at was the value that was being sent back.