C
cmdolcet69
I get an Object Reference not set to an instance of an object when my
code is hit on the pfile.GraphicArrowLimits
Public Function AddGraphicArrowLimitsToScreen(ByVal compSelected As
String) As Boolean
Try
If compSelected = "-Blank Entry-" Then
compSelected = String.Empty
End If
Dim intloop As Integer
'If pFile.GraphicArrowLimits.Count = Nothing Then
'Exit Function
'End If
For intloop = 0 To pFile.GraphicArrowLimits.Count - 1
If pFile.GraphicArrowLimits(intloop).CompName =
compSelected And pFile.GraphicArrowLimits(intloop).ShowArrowLimits =
True Then
Return True
End If
Next
Return False
Catch ex As Exception
tListener.AddMethodError(ex)
End Try
End Function
The class I call this Function in the pfile is declared as
Private pFile As PartfileLibrary.Partfile
The actual Partfile Class i call me GraphicArrowLimits
Public GraphicArrowLimits As GraphicArrowLimitList = New
GraphicArrowLimitList
I dont know why this is trigging the error when i have instanciated
the object?????
code is hit on the pfile.GraphicArrowLimits
Public Function AddGraphicArrowLimitsToScreen(ByVal compSelected As
String) As Boolean
Try
If compSelected = "-Blank Entry-" Then
compSelected = String.Empty
End If
Dim intloop As Integer
'If pFile.GraphicArrowLimits.Count = Nothing Then
'Exit Function
'End If
For intloop = 0 To pFile.GraphicArrowLimits.Count - 1
If pFile.GraphicArrowLimits(intloop).CompName =
compSelected And pFile.GraphicArrowLimits(intloop).ShowArrowLimits =
True Then
Return True
End If
Next
Return False
Catch ex As Exception
tListener.AddMethodError(ex)
End Try
End Function
The class I call this Function in the pfile is declared as
Private pFile As PartfileLibrary.Partfile
The actual Partfile Class i call me GraphicArrowLimits
Public GraphicArrowLimits As GraphicArrowLimitList = New
GraphicArrowLimitList
I dont know why this is trigging the error when i have instanciated
the object?????