' 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

Namespace MyLoop
    Public Class Program
        Public Shared Function GetMe3() As Integer
            Console.WriteLine("GetMe3 called")
            Return 3
        End Function
        Public Shared Sub Main(args As String())
            For i As Integer = 1 To GetMe3()
                Console.WriteLine(i)
            Next
        End Sub
    End Class
End Namespace
