tblITableEditor ClearDataOnCellList
Clears any string or expression present in the specified cells.
Syntax
lITableEditor_handle ClearDataOnCellListcellList
Application
HyperWorks Tcl Query
Description
Clears any string or expression present in the specified cells.
Inputs
- cellList
- List of cell names. For example: "A1 A2 B1 B2".
Example
set t [hw::GetT]
set activetableHandle [hwi GetActiveClientHandle ch$t]
$activetableHandle SetCellData A1 "Max"
$activetableHandle SetCellData A2 {max(p1w1c1.y)}
$activetableHandle SetCellData B1 "Min"
$activetableHandle SetCellData B2 {min(p1w1c1.y)}
puts "Data in cell A1: [$activetableHandle GetCellData A1]"
puts "Data in cell A2: [$activetableHandle GetCellData A2]"
puts "Value in cell A2: [$activetableHandle GetCellValue A2]"
puts "Cells having data are: [$activetableHandle GetCellsHavingData]"
$activetableHandle ClearDataOnCellList "A1 A2"
puts "Cells having data are: [$activetableHandle GetCellsHavingData]"
$activetableHandle ReleaseHandle
Errors
Returns Success(0) or an error code.