DescriptionThe Static statement is used at the procedure level to define a local variable with a value that is retained for the lifetime of the object in which it appears, even when the variable goes out of scope (that is, even when the procedure's code is not currently being executed). The Static statement is actually a variation of the Dim statement. For more information on the syntax and use of the Static statement, see the Dim Statement entry elsewhere in this chapter. See AlsoDim Statement |