Sets a new value for a specific column with the data type int.

Syntax

XIH.SetInt(colcaption, value)
XIH.SetInt(colcaption, offset, value)
XIH.SetInt(colIndex, value)
XIH.SetInt(colIndex, offset, value)

Parameters

Parameter

Data type

Description

Sample

colcaption

string

String specifies the columns caption.

"col1"

colIndex

int

Index of a column

1

offset

int

Optionally specifies the row offset. Default is 1

1

value

int

The new value that will replace the old one

4

Remarks

ColumnIndex is zero-based.

A statement with an offset returns 'false' after reaching the end of the column due to the offset.

Returns a boolean.

Examples

For this example to work you need an existing column "Value" that is filled with numbers and an existing column "Sales" with the data type int that will be filled with the results.

XIH.SetInt("Sales", #Value# * 100)

Writes into the column "Sales" the value of column "Value" multiplied by 100.


XIH.SetInt("Sales", 2, #Value#)

Writes the current value of column "Value" offset by 2 rows into the column "Sales".

Returns 'false' after reaching the end of the table due to the offset.

Related