Dim Code As StringCode = "Dim Val1 As Integer = 1" & vbcrlfCode = Code & "Dim Val2 As Integer = 2" & vbcrlfCode = Code & "Dim Sum As Integer = Val1 + Val2" & vbcrlfCode = Code & "Return Sum"Functions.remove("Sum")Functions.Add("Sum",Code)Functions.Complie()
Dim sum = Functions.Execute("sum")msgbox(sum)