How You Can Create the Frame and Set Attributes
To create a frame dynamically, you must first create a FrameSource object for the frame. The FrameSource object contains a frame's source definition, its initial settings when it is called or opened. You must first declare the reference variable that points to the FrameSource object. For example:
test_frame = FrameSource;
A FrameSource has the following attributes that you must set to run the frame:
TopForm
Contains the form associated with the frame
Script
Contains the frame's script
In a dynamic context, setting these attributes means that you must construct the form and the script in your 4GL code. For a discussion of these procedures, see
How You Can Create the Form (see
How You Can Create the Form) and
How You Can Create the Script (see
How You Can Create the Script).
If the frame you are constructing has a menu, you must construct the menu (another attribute of the frame source) in your 4GL code. For a discussion of this procedure, see
How You Can Create the Menu (see
How You Can Create the Menu).
Other frame source attributes that you can set are:
DataType
Specifies the data type of the frame's return value
IsNullable
Specifies whether the return value data type is nullable