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

Syntax

XIH.SetBool(colcaption, value)
XIH.SetBool(colcaption, offset, value)
XIH.SetBool(colIndex, value)
XIH.SetBool(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

bool

The new value that will replace the old one

true/false

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 "OldValues" that is filled with bools and an existing column "NewValues" with the data type bool will be filled with the results.

XIH.SetBool("NewValues", #OldValues#)

Writes into column "NewValues" the value of column "OldValues".

Related