
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All
I am having a bit of trouble hope someone can help me. I am trying to use a form to control my designs sizes. So I have a panel the has two linear patterns of hole in it. The one is for the amount of holes deep (RD) and the other one for the rows high (RH). I am trying to use the form to do my selection of each of the sizes. The catch is depending on the RH you can only have a set selection on your RD.
I used Curtis Waguespack example rule and tried to butcher it to work for me. I get it to work but the second part of it to only show a set selection, that part does not work.
http://inventortrenches.blogspot.co.za/
If someone can perhaps help me let me know. Below is my version of Curtis rule.
SyntaxEditor Code Snippet
'reset List B list to default MultiValue.SetList("FORM_RD_SECTION", 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) Dim RD As New ArrayList RD = MultiValue.List("FORM_RD_SECTION") Dim Temp_List As New ArrayList Temp_List.Clear For Each oItem in RD If FORM_RH_SECTION = 6 Then Temp_List.Add(oItem) End If Next MultiValue.List("FORM_RD_SECTION") = Temp_List Temp_List.Clear For Each oItem in RD If FORM_RH_SECTION = 8 Then MultiValue.SetList("FORM_RD_SECTION", 3, 4, 5, 6, 7, 8, 9, 10) End If Next MultiValue.List("FORM_RD_SECTION") = Temp_List Temp_List.Clear For Each oItem in RD If FORM_RH_SECTION = 10 Then MultiValue.SetList("FORM_RD_SECTION", 3, 4, 5, 6, 7, 8, 9, 10, 11) End If Next MultiValue.List("FORM_RD_SECTION") = Temp_List Temp_List.Clear For Each oItem in RD If FORM_RH_SECTION = 12 Then MultiValue.SetList("FORM_RD_SECTION", 3, 4, 5, 6, 7, 8, 9, 10, 11) End If Next MultiValue.List("FORM_RD_SECTION") = Temp_List Temp_List.Clear For Each oItem in RD If FORM_RH_SECTION = 14 Then MultiValue.SetList("FORM_RD_SECTION", 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) End If Next MultiValue.List("FORM_RD_SECTION") = Temp_List
Solved! Go to Solution.