Static Variables

The Static keyword is used to indicate that a variable will maintain its value between successive calls to a procedure. VB6 supported making all procedure variables static by adding the Static keyword to the procedure header. Visual Basic .NET does not support procedure-header use of Static.

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.