.NET Framework Update Issues

.NET Framework Update Issues

Anonymous
Not applicable
316 Views
0 Replies
Message 1 of 1

.NET Framework Update Issues

Anonymous
Not applicable

Ever since our .NET Framework was updated on our computers, I cannot seem to get a piece of my program to work now.  This is the piece of code in question.

 

'Check if sheet parameter exist in the Custom Properties
Try
     ThisDrawing.SummaryInfo.GetCustomByKey(strParameterSheet, strValueSheet)
     cbSheetsize.Text = strValueSheet
Catch ex As Exception
     ThisDrawing.SummaryInfo.AddCustomInfo(strParameterSheet, strParameterValue)
     cbSheetsize.Text = strParameterValue
     strValueSheet = cbSheetsize.Text
End Try

 

The line "ThisDrawing.SummaryInfo.GetCustomByKey(strParameterSheet, strValueSheet)" used to error out if the parameter did not exist and went to the Catch line.  But now it does not.  It goes to the next line and sends out an error that the key strValueSheet does not exist.

 

I never had problems with this until the Framework was updated.

 

How can I change this to work?

0 Likes
317 Views
0 Replies
Replies (0)