Programming Guide : Creating Dynamic Frames : How You Can Manipulate Data in Dynamic Fields
 
Share this page          
How You Can Manipulate Data in Dynamic Fields
If a field was created with a declared variable in OpenROAD Workbench, you access the field's data value by using the name of the field as a variable.
For example, assume that salary is the name of a field with data type money and dollars is a variable declared with the same data type. The following statements are valid:
salary = salary * 1.15;
dollars = salary;
salary = dollars + 5.25;
You cannot perform these calculations as easily when working with a dynamically created field. To access the value of a dynamically created field, you must invoke a method on the field or use a dynamic expression (DynExpr).
For a discussion of accessing values in dynamically created fields, see How You Can Set and Get Simple Field Values) and How You Can Access Individual Cells of a Dynamic Table Field.