14. Creating a Frame at Runtime : How You Can Build a Frame Dynamically : How You Can Create the FrameSource Object : How You Can Set the FrameSource Attributes
 
Share this page                  
How You Can Set the FrameSource Attributes
After the starting frame's Go operation creates the FrameSource object, it sets the following frame attributes:
Name
Specifies the name of the frame
Datatype
Specifies the data type of the frame's return value
IsNullable
Specifies whether the return value is nullable
WindowTitle
Defines the title that appears on the frame's window
CurMode
Defines the frame's mode
WindowPlacement
Defines the location of the frame's window when the frame is called or opened
The sample application assigns the following values to these attributes:
/* Fill in the Frame Information */
test_frame_name = table_choices + '_frame';
test_frame.Name = test_frame_name;
test_frame.DataType = 'integer4';
        /* This is default */
test_frame.IsNullable = TRUE;
        /* This is default */
test_frame.WindowTitle = 'Edit Data For Table: ' +
        table_choices;
test_frame.CurMode = FM_UPDATE;
test_frame.WindowPlacement = WP_FLOATING;
Some frame attributes, such as StartMenu, are set later in the program (after the code creates the objects contained by the attributes). Other frame attributes are left at their default values. For an example of creating the StartMenu object, see How You Can Create the Frame Menu Items (see How You Can Create the Frame Menu Items).