Siebel VB Language Reference > Methods Reference for Siebel VB > Variable Manipulation Methods >

Declare Static Variable Statement


The Declare Static Variable statement declares a variable and allocates storage space for this variable. It does not return a value.

A variable that you declare with the Static statement retains a value as long as the code runs. The format you use is exactly the same as the format you use with the Declare Variable statement. For more information, see Declare Variable Statement.

To make a procedure variable static, you can use the Static keyword in the definition of this procedure. For more information, see Create Function Method and Create Subroutine Method.

Format

Static variableName [As type] [,variableName [As type]] ...

The following table describes the arguments that you can use with this method.

Argument
Description

variableName

The name of the variable to declare as static.

type

The data type of the variable. If you do not include the type argument, then Siebel VB uses the variant type.

Related Topics

Declare Array Method
Set Array Lower Boundary Method

Siebel VB Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.