' Visual Basic 2008 9.0 .NET Examples - Local, Module and Static Variables - Procedures and Functions : Module Example4 Sub Main() Test() Test() Test() ' Console.ReadLine() End Sub Sub Test() Static firstExecution As Boolean = True If firstExecution Then Console.WriteLine("First execution of Test.") firstExecution = False Else Console.WriteLine("Not the first execution of Test.") End If End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.