INT (Reserved Word)

image\trumpet2.gif Disclaimer

The int reserved word used in a variable declaration statement to explicitly set the data type of a variable to integer.  The data type of a variable in the main body of an EasyLanguage document is automatically set to integer if the initial value parameter is a non-floating point numeric value.

A variable of this type can have a numeric value.

Remarks

The int keyword is an alias of the elsystem.elInt class and allows you to use the methods associated with that class (such as .ToString) on variables declared with the int data type.

Example

In the main body of a document:

Var: INT MyVar1(120);     // in this case, the data type is optional and the initial value is required

In a method:

Var: int MyVar2;          // in this case, the data type is required and no initial value is allowed

  See Variable for other syntax parameters.