CellAsBoolean Method

Important note
Applies to a design table sheet. Returns the contents of a cell located in a column intended for boolean values. Returns false if the cell does not contain a boolean or if the method arguments are not properly specified.

Syntax

sheet.CellAsBoolean(rowIndex: Integer, columnIndex: Integer): Boolean

The CellAsBoolean method has two arguments:

Arguments Description
rowIndex Required. Configuration number. Integer from 1 to n.
columnIndex Required. Index of the table column. Integer from 1 to n.

Example

Boolean2=Relations\DesignTable1\sheet_name.CellAsBoolean(1,5)
if (Boolean2 <> true)
{
  Message("Error !!!")
}

Sample

KwrProgramDT.CATPart

 

 

Up Next