home *** CD-ROM | disk | FTP | other *** search
- // DataFlex Source Code
- // Copyright 1987-1992 Data Access Corporation, Miami FL, USA
- // All Rights reserved
- //
- // LS 5/12/92
- // JR 2/13/92
-
- // Since a large part of FLEXERRS.SRC was produced by DFAUTO, it seemed
- // reasonable to simply include the code additions where possible so
- // that the source could continue to be updated with DFAUTO with a minumum
- // of overhead. This is one of the included modules.
-
- //--------------------------------------------------------------------------
- //--------------------------------------------------------------------------
-
- number errorOffset
- move 0 to errorOffset
-
- indicator editOnlyState
- indicate editOnlyState FALSE
-
- string special 7
- indicator overrideEditState
- cmdline special
- indicate overrideEditState as (upperCase( special )) eq "-SYSTEM"
-
- //--------------------------------------------------------------------------
- //--------------------------------------------------------------------------
-
- /Verify_Image
- ╔══════════════════════════════╗
- ║ ____________________________ ║
- ║ ┌──────────────────────────┐ ║
- ║ │ <__> <______> │ ║
- ║ └──────────────────────────┘ ║
- ╚══════════════════════════════╝
- /*
-
- Sub_Page Ok_Cancel_Prompt FROM Verify_Image 2 3
-
- object Verify_It is a CLIENT Verify_Image
-
- set LOCATION to 7 25 ABSOLUTE
- set CENTER_STATE of current_Object item 0 to TRUE
-
- set SCOPE_STATE to TRUE
- set POPUP_STATE to TRUE
-
- object Ask_Ok is a button Ok_Cancel_Prompt
-
- item_List
- On_Item "OK" SEND Ok
- On_Item "CANCEL" SEND Cancel
- end_Item_List
-
- End_Object // Ask_Ok
-
- function Validate_Ok string Description returns integer
- local integer Return_Val
- set VALUE of Verify_It item 0 to Description
- ui_accept Verify_It OBJECT to Return_Val
- function_return Return_Val
- end_Function
-
- End_Object // Verify_It
-
- function verify_A_Delete returns integer
- if (Validate_Ok(Verify_It.obj,"Delete Confirmation")) ne MSG_OK function_Return 1
- end_Function
-
- function verify_A_Save returns integer
- if (Validate_Ok(Verify_It.obj,"Save Confirmation")) ne MSG_OK function_Return 1
- end_Function
-
-