Show: Object Pascal C++
Display Preferences

Declare Variable

From Appmethod Topics
Jump to: navigation, search

Go Up to Refactor Menu

Refactor > Declare Variable (Shift+Ctrl+V)

Use this dialog box to declare a local variable in a procedure. If the cursor in the Code Editor is not positioned on an undeclared variable, the Refactor > Declare Variable command is unavailable.

Item Description

Name

Displays the name of the currently selected variable.

Type

Specifies the type of variable. By default the name you typed in the Code Editor is displayed. If you enter an invalid name in this field, such as a reserved word, an exclamation icon Exclamation Icon is displayed in the dialog box, prompting you to correct the error.

Array

Specifies that the variable should be declared as an array.

Dimensions

Specifies the dimensions of the array.

Set Value

Initializes the variable with specified value.



See Also

Personal tools
In other languages