Created
October 1, 2018 15:26
-
-
Save cgillis-aras/ff9e8a584a7535a6c59ee5cfa7171a9a to your computer and use it in GitHub Desktop.
Shows how to define a class or function within an Innovator Method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Primary code that will execute when this method is called | |
Dim test as New Foo | |
Return Me.getInnovator().newResult(test.Food()) | |
End Function | |
' Our class definition | |
Public Class Foo | |
Function Food() as String | |
Return "Cheese" | |
End Function | |
End Class | |
' Our sub-function definition | |
Function helper() As String | |
Return "test" | |
' End Function <-- Leave off this last line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment