' 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
Imports System.Collections.Generic

Namespace E
    Public Class Program
        Public Shared Sub Main(args As String())
            Dim tmpArray As String() = New String(4) {}
            tmpArray(0) = "billede1.jpg"
            tmpArray(1) = ""
            tmpArray(2) = "billede3.jpg"
            tmpArray(3) = "billede4.jpg"
            tmpArray(4) = ""
            Dim tmpList As List(Of String) = (New List(Of String)(tmpArray)).FindAll(Function(s As String) Not String.IsNullOrEmpty(s))
            For Each s As String In tmpList
                Console.WriteLine(s)
            Next
        End Sub
    End Class
End Namespace
