# Set Integer

Sets the control contained in a cell to the specified integer value. The control must be of the types EditInt, Checkbox, or ListBox.

## Set Integer Inputs

Syntax: SI<CellName> <Value>

Note: The Set Integer command requires a space between the cell ID and value arguments.

## Set Integer Outputs

Returns a status code. The status codes are:

Status Codes | Description
--- | ---
1 | The command was executed successfully.
0 | Unrecognized command.
-1 | Invalid cell name.
-2 | The command could not be executed, the specified integer value is outside of the valid range of the control, or the specified cell does not contain a control of the valid type.
-3 | Unable to set a read-only cell.
-4 | Wrong argument type.
-6 | User does not have Full Access to execute the command.

## Example: Change the Value of a Cell

1. Assume cell A2 is populated as follows:

   A2 = EditInt(0,10)

   The cell A2 is published with the name IntInA2.

   A2 currently contains the value 3. The spreadsheet looks like this:

2. To change the value to 8, issue the SIIntInA2 8 command, as shown in the following Telnet client window:

   The In-Sight vision system responds with 1, indicating that the command was successfully executed, and the EditInt control has been successfully changed from 3 to 8 within the spreadsheet: