Message 1 of 4
Creating Ilogic table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I created a table in a template and it works great, no problems at all. See code below
InitializeTable() Dim row As TableValues Dim found As Boolean = table.TryGetValue(SPEED+","+HWY_HEIGHT+","+GROSS_LOAD, row) If (found) Then PART_SELECT= row.AY MAIN_SPRING= row.TV End If
Public table As New Dictionary(Of String, TableValues) Sub InitializeTable table("600,0-350,6500-6999") = New TableValues("C42933001", 186) table("600,0-350,7000-7499") = New TableValues("C42933001", 183)
End Sub
Class TableValues Public AY As String Public TV As String Public Sub New(AY As String, TV As Double) Me.AY = AY Me.TV = TV End Sub End Class
Now I am making another template and using the same code except
I am adding 2 extra columns. When I run the rule I get an error message.
Rest of the code is the same and I do not know what I need to fix to make it work. What is the solution to this
Dim found As Boolean=table.TryGetValue(SPEED+","+HWY_HEIGHT+","+GROSS_LOAD+","+GOV_POSITION+","+MACHINE_TYPE, row)
table("200,0-350,7000-7499,Left,Geared" ) = New TableValues("C42932001", 193)