Programming Guide : 13. Creating Dynamic Frames : How You Can Declare a Composite Field's Array Variable Dynamically : How You Can Change a Dynamic Table Field after Declaring Data
 
Share this page                  
How You Can Change a Dynamic Table Field after Declaring Data
After declaring data, you can change a dynamic table field, adding or removing columns, using the following steps:
1. Set its array to null.
2. Undeclare its data.
The following code disassociates a target array from the qo query object, disassociates any particular class from the tarray array, and disassociates any array from the tfield table field:
qo.TargetArray = null;
tarray = null;
status = tfield.UnDeclareData();
if status != ER_OK then
    ...
endif;
If data has not been declared, the UnDeclareData method returns an error (nonzero value). Similarly, invoking the DeclareData method on an object for which data has already been declared (either a variable was declared for the table field in OpenROAD Workbench or with the DeclareData method) returns an error. Moreover, if a variable was declared for the table field in Workbench, you cannot later undeclare and redeclare the data.