To declare a global variable, right-click on the Code Explorer and select Module. The treeview will change to display the global section.
Click on the Declarations node this will display two items in the listview: Constants and Variables.
Select the Variables item. If you have already declared some variables, they will be displayed in the Code Editor. If the Code Editor is blank, right-click the Variables item and select New this will activate the Code Editor and add var to the first line.
Declare your variables using standard Object Pascal syntax.