user3542679
user3542679

Reputation: 75

vb6 using a SUB as a PARAMETER in another SUB?

Trying to upgrade this VB6 code to C# but I have trouble understanding or researching how this works:

Public Sub SetChannelIncludeStatus(blnChanIncluded() As Boolean, intMaxChans 
As Integer, strSlot As String)

How is it possible to include another sub like that as parameter? How do I do it in C#?

Upvotes: 1

Views: 75

Answers (1)

StayOnTarget
StayOnTarget

Reputation: 13008

It isn't passing a procedure - blnChanIncluded() is actually an array. VB6 array and function syntax is similar.

Upvotes: 1

Related Questions