1 /* ----------------------------------------------------------------------------
3 Purpose
: Search for an office setting with a Logical value
5 Parameters
: {1} - The name of the office setting
6 {2} - The name of the logical variable to define and store the
8 {3} - (Optional
) If the setting is not found then display in a
9 message alert-box of type
{3}
11 Notes
: Office must be available
13 -------------------------------------------------------------------------------*/
15 DEF VAR {2} AS LOGI
NO-UNDO.
17 FIND OfficeSetting
OF Office
WHERE OfficeSetting.SetName
= "{1}"
20 {2} = IF AVAILABLE OfficeSetting
THEN (TRIM(OfficeSetting.SetValue
) BEGINS "Y")
23 IF "{3}" <> "" AND NOT AVAILABLE OfficeSetting
THEN
24 MESSAGE {2} VIEW-AS ALERT-BOX {3}.