RAD Studio (Common)
ContentsIndex
PreviousUpNext
Declare Variable

RefactorDeclare Variable 

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 RefactorDeclare Variable command in 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 a reserved word, an exclamation icon Exclamation Icon is displayed in the dialog box, prompting you to correct it.  
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.  
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!