' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Imports System

Public Class TestClass
    Public Shared Sub Main(ByVal args As String())
        Dim a(3) As String
        a(0) = "ABC"
        a(1) = "XYZ"
        Dim i As Integer
        For  i = 0 To 2 
            If a(i) <> Nothing Then
                Console.WriteLine("a(" & i & ") = " & a(i))
            Else
                Console.WriteLine("a(" & i & ") = Nothing")
            End If
        Next
    End Sub
End Class
