Programming Guide : 13. Creating Dynamic Frames : How You Can Declare a Composite Field's Array Variable Dynamically
 
Share this page                  
How You Can Declare a Composite Field's Array Variable Dynamically
To change the fields in a composite field or the columns in a table field dynamically at runtime, the composite field (including table fields) must have been created without a variable declared. Only after the composite field has been modified to contain the required fields or columns should you use the DeclareData method to declare a user class or array variable for it.
Moreover, to change the fields of a composite field or the columns of a table field whose user class or array variable has been dynamically declared, use the UnDeclareData method to remove the current user class or array before changing the fields or columns and declaring a new user class or array.
The following sections describe dynamically declaring and undeclaring an array variable for a table field.