' 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) 
﻿Module Program
    Sub Main()
        Dim s As String = "ABC"
        Console.WriteLine(Mid(s, 2, 1))
        Console.WriteLine(Mid$(s, 2, 1))
        Console.WriteLine(s.Substring(1, 1))
        Console.ReadKey()
    End Sub
End Module
