Cicode Programming Reference > Using Cicode Programming Standards > Variable Scope Standards

Variable Scope Standards

Local variable standards

Local Variables should be initialized, for example:

INT			iFile	= 0;
STRING sName = "";
INT bSuccess = FALSE;

Module variable standards 

Module Variables should be initialized, for example:

MODULE		 INT					 mhForm = -1;
MODULE STRING msPageName = "Loop";

Global variable standards 

Global variables should be initialized, for example:

GLOBAL		 INT					 ghTask = -1;
GLOBAL STRING gsLastPage = "Menu";