Passing the name of a Sub statement
Not applicable
07-11-2019
07:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am looking to pass the name of a the Sub statement, "Test2" to a Sub rule "Test" in the code below. However, I receive an error that otest () in Sub Test is not a method. Is this possible? If so could someone identify what I am missing? Thanks in advance.
Sub Main otest = "Test2" Test(otest) End Sub Sub Test (otest) otest () End Sub Sub Test2 () MessageBox.Show("Message", "Title") End Sub