If you want to type all of your variables in your database, there is a quick way to do it; let 4D Compiler define them for you.
Launch 4D Compiler and open the project of your database. In the 4D Compiler window, click on the More button. This will display another window that will contain a button for "Typing file." Click on this button and this will allow you to define where the typing file has to be created. Then, you can compile your database.
This file will contain all pre-tyepd variables for all of your methods.
You can just copy and paste these declarations into your methods.