How to Specify Dynamic Function Name

How do you dynamically specify a function name at runtime? Please see the sample code below, where the elements in array arrFunc() are set to either True or False. I want the loop to dynamically call functions fncProcess1, fncProcess2, or fncProcess3, depending on the boolean value of the current array element.
Dim intElement As Integer
        Dim strResults as String
 
        For intElement = 1 To 3
            If arrFunc(intElement) Then
                strResults = Eval("fncProcess" & intElement)
            End If
        Next
    End Sub

Open in new window

LVL 2
brian_appliedcpuAsked:
Who is Participating?
 
Kevin CrossChief Technology OfficerCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.