tblITableEditor ClearAllRules

Delete all rules present in the Table Client.

Syntax

tblITableEditor_handle ClearAllRules

Application

HyperWorks Tcl Query

Description

This command deletes all rules that are currently being used for conditional formatting of table cells.

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 ClearAllRules
$activetableHandle ReleaseHandle

Errors

Returns Success(0) or an error code.