DeleteCurrentRow returns 1 even when no records are delete


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
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.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search