Bookshelf Home | Contents | Index | PDF |
Siebel VB Language Reference > VB Language Reference > Static StatementThis standard VB statement declares variables and allocates storage space. SyntaxStatic variableName [As type] [,variableName [As type]] ... ReturnsUsageVariables declared with the Static statement retain their value as long as the program is running. The syntax of Static is exactly the same as the syntax of the Dim statement. Variables of a procedure can be made static by using the Static keyword in a definition of that procedure. For more information, read Function...End Function Statement and Sub...End Sub Statement. See AlsoDim Statement |
Siebel VB Language Reference |