Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have some Parameters I'm using in a Form and want to get their values into a class I made. This is a simplified example of what I want to do.
Sub Main
Dim al As New Test
al.UpdateSize()
End Sub
Public Class Test
Inherits ThisRule
Public Sub UpdateSize()
Parameter("Part1:1","Length") = Parameter("Length")
Parameter("Part1:1","Width") = Parameter("Width")
End Sub
Public Sub New()
End Sub
End Class
When I run it it says "Object reference not set to an instance of an object."
I noticed that doing "Inherits ThisRule" changed the color of Parameter to the correct color so I just left it in there, not sure if it's right.
Thanks
Solved! Go to Solution.