D
duncans
I have the following simple select case in my code (VB.NET managed code) to
remove an optional section if the user selection from a dropdownlist box
changes:
'Remove any existing optional sections.
Select Case e.OldValue
Case "2"
Case "7"
Case "12"
'Mileage
thisXDocument.View.SelectNode
(thisXDocument.DOM.selectSingleNode("/my:myFields/my:ExpenseReport/my:ExpenseReportDetail/my:MileageExpense"),
System.Reflection.Missing.Value, System.Reflection.Missing.Value)
thisXDocument.View.ExecuteAction("xOptional::remove",
"group3_3")
End Select
The code removes the desired optiona section BUT when the last statement is
excuted, instead of dropping out of the select case loop, the entire loop
tries to execute again and throws an error. If I click through the error the
optional section has indeed been removed. Does anyone have any insight as to
why this might be happening? Thanks.
remove an optional section if the user selection from a dropdownlist box
changes:
'Remove any existing optional sections.
Select Case e.OldValue
Case "2"
Case "7"
Case "12"
'Mileage
thisXDocument.View.SelectNode
(thisXDocument.DOM.selectSingleNode("/my:myFields/my:ExpenseReport/my:ExpenseReportDetail/my:MileageExpense"),
System.Reflection.Missing.Value, System.Reflection.Missing.Value)
thisXDocument.View.ExecuteAction("xOptional::remove",
"group3_3")
End Select
The code removes the desired optiona section BUT when the last statement is
excuted, instead of dropping out of the select case loop, the entire loop
tries to execute again and throws an error. If I click through the error the
optional section has indeed been removed. Does anyone have any insight as to
why this might be happening? Thanks.