Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a situation where I've created a rule to return the a material stock code from an ArrayList, the problem is I also need to see the stock code description to make the correct selection.
Dim oDoc As Document = ThisDoc.Document Dim CustTypeCRS As New ArrayList CustTypeCRS.Add("ME-CRS-0006")'22GA, Sheet, Cold Rolled Steel, 60.00 x 120.00 CustTypeCRS.Add("ME-CRS-0009")'16GA, Sheet, Cold Rolled Steel, 60.00 x 120.00 CustTypeCRS.Add("Me-CRS-0010")'20GA, Sheet, Cold Rolled Steel, 60.00 x 120.00 CustTypeCRS.Add("ME-CRS-0011")'18GA, Sheet, Cold Rolled Steel, 60.00 x 120.00 CustTypeCRS.Add("ME-CRS-0013")'14GA, Sheet, Cold Rolled Steel, 60.00 x 120.00 Dim oSelMaterialStockCode As String = InputListBox("Select Material Stock Code", CustTypeCRS, oMaterialStockCode, Title := "CRS Sheet Selection", ListName := "CRS Sheet Stock Code") 'if this custom property doesn't exist, this next line will also crete it if needed (no error shown) iProperties.Value("Custom", "Material Stock Code") = oSelMaterialStockCode
Solved! Go to Solution.