home *** CD-ROM | disk | FTP | other *** search
- * *********************************************************
- * *
- * * 05/18/93 OPTIONS.SPR 13:44:35
- * *
- * *********************************************************
- * *
- * * Steven Hsu, Wayne Lampel
- * *
- * * Copyright (c) 1993 Microsoft
- * * One Microsoft Way
- * * Redmond, WA 98052
- * *
- * * Description:
- * * This program was automatically generated by GENSCRN.
- * *
- * *********************************************************
-
- DO CASE
- CASE _WINDOWS
-
-
- #REGION 0
- REGIONAL m.currarea, m.talkstat, m.compstat
-
- IF SET("TALK") = "ON"
- SET TALK OFF
- m.talkstat = "ON"
- ELSE
- m.talkstat = "OFF"
- ENDIF
- m.compstat = SET("COMPATIBLE")
- SET COMPATIBLE FOXPLUS
-
- m.rborder = SET("READBORDER")
- SET READBORDER ON
-
- * *********************************************************
- * *
- * * Windows Window definitions
- * *
- * *********************************************************
- *
-
- IF NOT WEXIST("_qfx0tgfhq")
- DEFINE WINDOW _qfx0tgfhq ;
- AT 0.000, 0.000 ;
- SIZE 18.077,60.500 ;
- TITLE " Options " ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- FLOAT ;
- CLOSE ;
- NOMINIMIZE ;
- DOUBLE
- MOVE WINDOW _qfx0tgfhq CENTER
- ENDIF
-
-
- * *********************************************************
- * *
- * * OPTIONS/Windows Setup Code - SECTION 2
- * *
- * *********************************************************
- *
-
- #REGION 1
- if wvisible("View")
- dispview = .t.
- else
- dispview = .f.
- endif
-
- asynch = dbgetopt(ckhandle, "Asynchronous")
- IF (asynch < 0)
- DO repoerro.spr WITH asynch
- ELSE
- asynch = asynch + 1
- ENDIF
-
- usetabs = dbgetopt(ckhandle, "UseTables")
- IF (usetabs < 0)
- DO repoerro.spr WITH usetabs
- ELSE
- usetabs = usetabs + 1
- ENDIF
-
- connto = dbgetopt(0, "ConnTimeout")
- IF (connto < 0)
- DO repoerro.spr WITH connto
- ENDIF
-
- gento = dbgetopt(ckhandle, "GenTimeout")
- IF (gento < 0)
- DO repoerro.spr WITH gento
- ENDIF
-
- * until the dbgetopt returns the correct value
- if gento = 0
- gento = 15
- endif
-
- memosz = dbgetopt(ckhandle, "UseMemoSize")
- IF (memosz < 0)
- DO repoerro.spr WITH memosz
- ENDIF
-
- * until the dbgetopt returns the correct value
- if memosz > 254
- memosz = 254
- endif
-
-
- * *********************************************************
- * *
- * * OPTIONS/Windows Screen Layout
- * *
- * *********************************************************
- *
-
- #REGION 1
- IF WVISIBLE("_qfx0tgfhq")
- ACTIVATE WINDOW _qfx0tgfhq SAME
- ELSE
- ACTIVATE WINDOW _qfx0tgfhq NOSHOW
- ENDIF
- @ 3.077,32.667 SAY "Connect:" ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B"
- @ 4.615,32.667 SAY "General:" ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B"
- @ 9.615,32.667 SAY "Memo cutoff:" ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B"
- @ 1.923,1.833 TO 6.769,26.166 ;
- PEN 1, 8
- @ 1.462,3.000 SAY " Result Set " ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- COLOR RGB(,,,255,255,255)
- @ 9.077,2.000 TO 13.923,26.333 ;
- PEN 1, 8
- @ 8.615,3.000 SAY " Execution Mode " ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- COLOR RGB(,,,255,255,255)
- @ 2.000,30.333 TO 6.846,57.833 ;
- PEN 1, 8
- @ 1.538,31.333 SAY " Timeouts (in seconds) " ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- COLOR RGB(,,,255,255,255)
- @ 15.154,11.167 GET ExitAction ;
- PICTURE "@*HN \! OK ;\? Cancel" ;
- SIZE 1.769,16.500,4.000 ;
- DEFAULT 1 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "B" ;
- VALID _qfx0tggla()
- @ 3.077,3.667 GET useTabs ;
- PICTURE "@*RVN \<Return in Cursors;Return in \<Tables" ;
- SIZE 1.308,20.833,0.000 ;
- DEFAULT 1 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "BT"
- @ 10.231,3.667 GET asynch ;
- PICTURE "@*RVN \<Synchronous;\<Asynchronous" ;
- SIZE 1.308,17.667,0.077 ;
- DEFAULT 1 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "BT"
- @ 3.154,47.333 GET ConnTO ;
- SIZE 1.000,6.400 ;
- DEFAULT " " ;
- FONT "MS Sans Serif", 8 ;
- PICTURE "@K"
- @ 4.692,47.333 GET genTO ;
- SIZE 1.000,6.400 ;
- DEFAULT " " ;
- FONT "MS Sans Serif", 8 ;
- PICTURE "@K"
- @ 9.538,47.333 GET memoSz ;
- SIZE 1.000,6.400 ;
- DEFAULT " " ;
- FONT "MS Sans Serif", 8 ;
- PICTURE "@K"
- @ 11.615,32.667 GET dispview ;
- PICTURE "@*C \<Display View window" ;
- SIZE 1.308,25.333 ;
- DEFAULT 0 ;
- FONT "MS Sans Serif", 8 ;
- STYLE "BT" ;
- VALID _qfx0tggxb()
-
- IF NOT WVISIBLE("_qfx0tgfhq")
- ACTIVATE WINDOW _qfx0tgfhq
- ENDIF
-
- READ CYCLE MODAL
-
- RELEASE WINDOW _qfx0tgfhq
-
- #REGION 0
-
- SET READBORDER &rborder
-
- IF m.talkstat = "ON"
- SET TALK ON
- ENDIF
- IF m.compstat = "ON"
- SET COMPATIBLE ON
- ENDIF
-
-
- * *********************************************************
- * *
- * * OPTIONS/Windows Cleanup Code
- * *
- * *********************************************************
- *
-
- #REGION 1
- PRIVATE retcode
-
- IF (exitaction != 1)
- RETURN
- ENDIF
-
- asynch = asynch - 1
- retcode = dbsetopt(ckhandle, "Asynchronous", asynch)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- usetabs = usetabs - 1
- retcode = dbsetopt(ckhandle, "UseTables", usetabs)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- retcode = dbsetopt(0, "ConnTimeout", connto)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- retcode = dbsetopt(ckhandle, "GenTimeout", gento)
- IF (retcode< 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- retcode = dbsetopt(ckhandle, "UseMemoSize", memosz)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
-
- CASE _DOS
-
-
- #REGION 0
- REGIONAL m.currarea, m.talkstat, m.compstat
-
- IF SET("TALK") = "ON"
- SET TALK OFF
- m.talkstat = "ON"
- ELSE
- m.talkstat = "OFF"
- ENDIF
- m.compstat = SET("COMPATIBLE")
- SET COMPATIBLE FOXPLUS
-
- * *********************************************************
- * *
- * * MS-DOS Window definitions
- * *
- * *********************************************************
- *
-
- IF NOT WEXIST("_qfx0tghj3")
- DEFINE WINDOW _qfx0tghj3 ;
- FROM INT((SROW()-13)/2),INT((SCOL()-59)/2) ;
- TO INT((SROW()-13)/2)+12,INT((SCOL()-59)/2)+58 ;
- TITLE " Options " ;
- FLOAT ;
- CLOSE ;
- NOMINIMIZE ;
- DOUBLE ;
- COLOR SCHEME 5
- ENDIF
-
-
- * *********************************************************
- * *
- * * OPTIONS/MS-DOS Setup Code - SECTION 2
- * *
- * *********************************************************
- *
-
- #REGION 1
- on key label ALT+C _curobj = 4
- on key label ALT+G _curobj = 5
- on key label ALT+M _curobj = 6
-
- if wvisible("View")
- dispview = .t.
- else
- dispview = .f.
- endif
-
- asynch = dbgetopt(ckhandle, "Asynchronous")
- IF (asynch < 0)
- DO repoerro.spr WITH asynch
- ELSE
- asynch = asynch + 1
- ENDIF
-
- usetabs = dbgetopt(ckhandle, "UseTables")
- IF (usetabs < 0)
- DO repoerro.spr WITH usetabs
- ELSE
- usetabs = usetabs + 1
- ENDIF
-
- connto = dbgetopt(0, "ConnTimeout")
- IF (connto < 0)
- DO repoerro.spr WITH connto
- ENDIF
-
- gento = dbgetopt(ckhandle, "GenTimeout")
- IF (gento < 0)
- DO repoerro.spr WITH gento
- ENDIF
-
- * until the dbgetopt returns the correct value
- if gento = 0
- gento = 15
- endif
-
- memosz = dbgetopt(ckhandle, "UseMemoSize")
- IF (memosz < 0)
- DO repoerro.spr WITH memosz
- ENDIF
-
- * until the dbgetopt returns the correct value
- if memosz > 254
- memosz = 254
- endif
-
-
- * *********************************************************
- * *
- * * OPTIONS/MS-DOS Screen Layout
- * *
- * *********************************************************
- *
-
- #REGION 1
- IF WVISIBLE("_qfx0tghj3")
- ACTIVATE WINDOW _qfx0tghj3 SAME
- ELSE
- ACTIVATE WINDOW _qfx0tghj3 NOSHOW
- ENDIF
- @ 0,1 TO 3,26
- @ 5,1 TO 8,26
- @ 0,30 TO 3,54
- @ 2,35 SAY "General:" ;
- SIZE 1,8, 0
- @ 1,35 SAY "Connect:" ;
- SIZE 1,8, 0
- @ 5,31 SAY "Memo cutoff size:" ;
- SIZE 1,17, 0
- @ 3,35 TO 3,35
- @ 0,2 SAY " Result Set" ;
- SIZE 1,11, 0 ;
- COLOR N+/W
- @ 5,3 SAY " Execution Mode" ;
- SIZE 1,15, 0 ;
- COLOR N+/W
- @ 0,31 SAY " Timeouts (in seconds)" ;
- SIZE 1,22, 0 ;
- COLOR N+/W
- @ 1,3 GET useTabs ;
- PICTURE "@*RVN \<Return in Cursors;Return in \<Tables" ;
- SIZE 1,21,0 ;
- DEFAULT 1
- @ 6,6 GET asynch ;
- PICTURE "@*RVN \<Synchronous;\<Asynchronous" ;
- SIZE 1,16,0 ;
- DEFAULT 1
- @ 10,10 GET ExitAction ;
- PICTURE "@*HN \! OK ;\? Cancel" ;
- SIZE 1,16,4 ;
- DEFAULT 1 ;
- VALID _qfx0tgie7()
- @ 1,44 GET ConnTO ;
- SIZE 1,6 ;
- DEFAULT " " ;
- PICTURE "@K"
- @ 2,44 GET genTO ;
- SIZE 1,6 ;
- DEFAULT " " ;
- PICTURE "@K"
- @ 5,49 GET memoSz ;
- SIZE 1,6 ;
- DEFAULT " " ;
- PICTURE "@K"
- @ 7,31 GET dispview ;
- PICTURE "@*C \<Display View window" ;
- SIZE 1,23 ;
- DEFAULT 0 ;
- VALID _qfx0tgino()
-
- IF NOT WVISIBLE("_qfx0tghj3")
- ACTIVATE WINDOW _qfx0tghj3
- ENDIF
-
- READ CYCLE MODAL
-
- RELEASE WINDOW _qfx0tghj3
-
- #REGION 0
- IF m.talkstat = "ON"
- SET TALK ON
- ENDIF
- IF m.compstat = "ON"
- SET COMPATIBLE ON
- ENDIF
-
-
- * *********************************************************
- * *
- * * OPTIONS/MS-DOS Cleanup Code
- * *
- * *********************************************************
- *
-
- #REGION 1
- PRIVATE retcode
-
- IF (exitaction != 1)
- RETURN
- ENDIF
-
- asynch = asynch - 1
- retcode = dbsetopt(ckhandle, "Asynchronous", asynch)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- usetabs = usetabs - 1
- retcode = dbsetopt(ckhandle, "UseTables", usetabs)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- retcode = dbsetopt(0, "ConnTimeout", connto)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- retcode = dbsetopt(ckhandle, "GenTimeout", gento)
- IF (retcode< 0)
- DO repoerro.spr WITH retcode
- ENDIF
-
- retcode = dbsetopt(ckhandle, "UseMemoSize", memosz)
- IF (retcode < 0)
- DO repoerro.spr WITH retcode
- ENDIF
- on key label ALT+C
- on key label ALT+G
- on key label ALT+M
-
-
- ENDCASE
-
-
- * *********************************************************
- * *
- * * _QFX0TGGLA ExitAction VALID
- * *
- * * Function Origin:
- * *
- * * From Platform: Windows
- * * From Screen: OPTIONS, Record Number: 11
- * * Variable: ExitAction
- * * Called By: VALID Clause
- * * Object Type: Push Button
- * * Snippet Number: 1
- * *
- * *********************************************************
- *
- FUNCTION _qfx0tggla && ExitAction VALID
- #REGION 1
- IF exitaction = 1
- IF memosz > 254 OR memosz < 1
- WAIT WINDOW "Memo cutoff must be between 1 - 254" NOWAIT
- _CUROBJ = 3
- RETURN
- ENDIF
- IF connto > 600 OR connto < 1
- WAIT WINDOW "Connect timeout must be between 1 - 600" NOWAIT
- _CUROBJ = 1
- RETURN
- ENDIF
- IF gento > 600 OR gento < 1
- WAIT WINDOW "General timeout must be between 1 - 600" NOWAIT
- _CUROBJ = 2
- RETURN
- ENDIF
- ENDIF
- CLEAR READ
-
-
- * *********************************************************
- * *
- * * _QFX0TGGXB dispview VALID
- * *
- * * Function Origin:
- * *
- * * From Platform: Windows
- * * From Screen: OPTIONS, Record Number: 17
- * * Variable: dispview
- * * Called By: VALID Clause
- * * Object Type: Check Box
- * * Snippet Number: 2
- * *
- * *********************************************************
- *
- FUNCTION _qfx0tggxb && dispview VALID
- #REGION 1
- if dispview
- set view on
- else
- set view off
- endif
-
- * *********************************************************
- * *
- * * _QFX0TGIE7 ExitAction VALID
- * *
- * * Function Origin:
- * *
- * * From Platform: MS-DOS
- * * From Screen: OPTIONS, Record Number: 33
- * * Variable: ExitAction
- * * Called By: VALID Clause
- * * Object Type: Push Button
- * * Snippet Number: 3
- * *
- * *********************************************************
- *
- FUNCTION _qfx0tgie7 && ExitAction VALID
- #REGION 1
- if exitaction = 1
- if memosz > 255 or memosz < 1
- wait window "Memo cutoff must be between 1 - 255" nowait
- _curobj = 3
- return
- endif
- if connto > 600 or connto < 1
- wait window "Connect timeout must be between 1 - 600" nowait
- _curobj = 1
- return
- endif
- if gento > 600 or gento < 1
- wait window "General timeout must be between 1 - 600" nowait
- _curobj = 2
- return
- endif
- endif
- clear read
-
- * *********************************************************
- * *
- * * _QFX0TGINO dispview VALID
- * *
- * * Function Origin:
- * *
- * * From Platform: MS-DOS
- * * From Screen: OPTIONS, Record Number: 37
- * * Variable: dispview
- * * Called By: VALID Clause
- * * Object Type: Check Box
- * * Snippet Number: 4
- * *
- * *********************************************************
- *
- FUNCTION _qfx0tgino && dispview VALID
- #REGION 1
- if dispview
- set view on
- else
- set view off
- endif
-
-
- * *********************************************************
- * *
- * * OPTIONS/MS-DOS Supporting Procedures and Functions
- * *
- * *********************************************************
- *
-
- #REGION 1