Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27034

VS 2010 problem in check if a member of a structure is nothing

$
0
0
hi
i create a structure like this :

Code:

Public Structure EquationColumns
  Dim ColumnName As String
End Structure


Public Structure EquationsInfo
  Dim SourceName As String
  Dim EquationColumn() As EquationColumns
  Public Sub x(ByVal Index As Integer)
      If EquationColumn(Index) IsNot Nothing Then MsgBox "Message"
  End Sub
End Structure

an error occured when i write "IsNot" Or "Is" Or "=" Or "<>" between "EquationColumn(Index)" And "Nothing" .
for IsNot Error is :
'IsNot' requires operands that have reference types, but this operand has the value type

for "<>" Error is :
Operator '<>' is not defined for types

Viewing all articles
Browse latest Browse all 27034

Trending Articles