tblITableEditor DeleteRule

Deletes the rule having a rule ID as an identifier.

Syntax

tblITableEditor_handle DeleteRuleruleid

Application

HyperWorks Tcl Query

Description

Deletes a rule that was used for the conditional formatting of table cells. It deletes the rule identified by rule ID.

Example

set t [hw::GetT]
set activetableHandle [hwi GetActiveClientHandle ch$t]
set ruleid [$activetableHandle AddRule]
set ruleHandle [$activetableHandle GetRuleHandle rh$ruleid $ruleid]
$ruleHandle SetCellList "A1 A2 B1 B2"
$ruleHandle SetBackgroundColor 3
$ruleHandle SetTextColor 0
$ruleHandle SetValue 10
$ruleHandle SetOperator ">"
$ruleHandle ReleaseHandle
$activetableHandle DeleteRule $ruleid
$activetableHandle ReleaseHandle

Errors

Returns Success(0) or an error code.