The correct answer is: C. Dim
A procedure-level variable is declared using the Dim
keyword. It is a local variable that is only accessible within the procedure in which it is declared.
The Private
keyword is used to declare a variable that is only accessible within the class in which it is declared.
The Public
keyword is used to declare a variable that is accessible from anywhere in the program.
The Static
keyword is used to declare a variable that persists between calls to the procedure in which it is declared.
Here is an example of a procedure-level variable declaration:
Dim myVar As Integer
This declaration creates a variable named myVar
of type Integer
. The variable is only accessible within the procedure in which it is declared.