File Name
Syntax
EVENT GroupMainEvent(REF group: GroupEventRecord;
Parameters
group - record that carries information for the event handler
Returns
Nothing
Side Effects
None
Description
This is the main event handler for working with groups.
Dialog Forms Called
groups.dfc[group_inquiry]
groups.dfc[workwithgroups]
File Name
Syntax
FUNCTION InquireGroups(VAL parentWindow: Window, VAL msgWindow: Window, REF group: GroupEventRecord, VAL doInquiry: BOOLEAN, VAL doSelect: BOOLEAN, VAL doWorkWith: BOOLEAN REF groupWindow: WINDOW): INTEGER;
Parameters
parentWindow - the main window to receive system-wide messages
msgWindow - message window or the direct parent to this
window
group - the reference parameter that will accept
the group information ifa group is selected.
doInquiry - displays and processes the Group Inquiry dialog box
doSelect - allows a record to be selected from the Work
With process
doWorkWith - displays and processes the Groups Work With
dialog box
groupWindow - the handle of the Work With Groups dialog box
Returns
The last return value from the dialog box creation
process. If the Work With dialog box is displayed
it returns the value from DlgCreate(), otherwise it
returns the value from the Inquiry
DlgBox().
Side Effects
None
Description
This function is used to display and process the group Inquiry and group Work With dialog boxes. If the Inquiry flag is TRUE, it will process the Inquiry and create a SQL search string based on the values entered. If the Work With flag is TRUE, it will display the Work With dialog box with either all the groups (Inquiry flag = FALSE) or a list of groups matching the search criteria the Inquiry screen (Inquiry flag = TRUE). If the user is allowed to select values, then the GroupEventRecord will be populated with the group information selected by the user.
Dialog Forms Called
groups.dfc[group_inquiry]
groups.dfc[workwithgroups]