Alternative to GoSub in VB.net
问题 I'm assigned a project to replace all the GoSubs in an application based off of VBA because this application is switching to VB.net and GoSubs are not supported there. Here's a simplified version of the original code: Sub Main () Dim A As String ... If ConditionX Then A = "Black" Else A = "White" End If ... GoSub Execute ... Execute: Call BuiltInSub1 (A) Call BuiltInSub2 (A) 'where BuiltInSubs are some predefined procedures within the application ... Return End Sub I'm thinking about using a