Static Statement


Static Statement

Description

The 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 Also

Dim Statement




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net