Hello,
Does anyone here know how to call a procedure named in a string..
I have..
sub doThisClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
msgbox "Clicked!"
end sub
dim nameOfProc as String
nameOfProc = "doThisClick"
dim btnNew as new button
addHandler btnNew.click, addressOf nameOfProc
AddressOf says "AddressOf operand needs to be the same name as the method (without parenthenses)"..
Aih?
Any help would be grand!
Regards,
g000we
Does anyone here know how to call a procedure named in a string..
I have..
sub doThisClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
msgbox "Clicked!"
end sub
dim nameOfProc as String
nameOfProc = "doThisClick"
dim btnNew as new button
addHandler btnNew.click, addressOf nameOfProc
AddressOf says "AddressOf operand needs to be the same name as the method (without parenthenses)"..
Aih?
Any help would be grand!
Regards,
g000we