' 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 Microsoft.VisualBasic

Public Class Displayer
    Private Dim s As String
    Public Sub New(arg As String)
        s = arg
    End Sub
    Public Sub DisplayUpper()
        MsgBox(UCase(s))
    End Sub
    Public Sub DisplayLower()
        MsgBox(LCase(s))
    End Sub
    Public Sub DisplayAsIs()
        MsgBox(s)
    End Sub
    Public Sub Add(s2 As String)
        s = s + s2
    End Sub
End Class

Module Main
    Sub Main()
       Dim Disp As Displayer = New Displayer("En test")
       Disp.DisplayUpper()
       Disp.DisplayLower()
       Disp.DisplayAsIs()
       Disp.Add(" - nemlig")
       Disp.DisplayAsIs()
    End Sub
End Module
