Hello,
Please excuse the title, I really have no idea what else to call it. But I'm trying to make a function that returns a value off a procedure called from a private Module, say, Command1_Click(), now I'm not sure if this is achievable using the AddressOf callback approach but I bumped into this nice thread by Joacim, and thought this could be related to that, somehow. I tried a thing or two and could not get one to work without crashing the IDE.
But to be more specific, I have 2 (indexed) buttons on a "Click" procedure:
Basically I want to do a function like the MsgBox that returns the response of a user's input, and in this case, it'd be which button is clicked. I named them "Yes" and the second one, "No", and perhaps may as well create another one that reads "Maybe". So... is this possible? Thanks in advance.
Please excuse the title, I really have no idea what else to call it. But I'm trying to make a function that returns a value off a procedure called from a private Module, say, Command1_Click(), now I'm not sure if this is achievable using the AddressOf callback approach but I bumped into this nice thread by Joacim, and thought this could be related to that, somehow. I tried a thing or two and could not get one to work without crashing the IDE.
But to be more specific, I have 2 (indexed) buttons on a "Click" procedure:
Code:
Private Sub cmdAnswers_Click(Index As Integer)
'How do I make a function that returns the Index of this procedure?
End Sub