Click here to Skip to main content
16,016,087 members

Articles by Member 4694807 (Tip/Tricks: 2)

Tip/Tricks: 2

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.67

Programming Languages
C#
27 Feb 2011   Updated: 28 Feb 2011   Rating: 4.33/5    Votes: 3   Popularity: 2.07
Licence: CPOL    Views: 7,171     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
My favorite is a variant of alternative 2.{ ... DoInit(); status=DoAllActions(); DoCleanup(status); ...}int DoAllActions(){ if (condition1_fails) return status1; ... if (condition2_fails) return status2; ... if(conditionN_fails) ...
Visual Basic
6 Apr 2011   Updated: 6 Apr 2011   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 5,792     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Sorry, but I don't like adding additional artificial elements like function arrays . I would code it as following:If isok(Step1()) OrElse isok(Step2(1,1)) OrElse isok(Step3() OrElse isok(Step4() OrElse isok(0+1) thenend ifFunction isok(ByVal rc as Integer) As Boolean ...

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.