How You Can Execute the Frame
The following code from the DynamicFrame frame assigns a name to the newly generated frame and executes it:
test_frame_name = table_choices + '_frame';
callframe :test_frame_name;
The callframe statement compiles and runs the new frame. When OpenROAD automatically compiles a dynamically created frame or procedure on first call, it places the text of any compilation errors into Proc4GLSource's Compile_Errors attribute. Check whether the Compile_Errors attribute is null after the first call to detect whether compilation errors occurred.
The following code from the example frame checks the Compile_Errors attribute and writes any errors to a file to facilitate debugging:
if test_frame.Compile_Errors is not null then
test_frame.Compile_Errors.WriteToFile
('test.errors');
Generated_Frame_List.RemoveRow(rownumber = i);
endif;
If the frame does not compile correctly, its name is removed from the list in the global array variable, Generated_Frame_List.