home *** CD-ROM | disk | FTP | other *** search
- *---------------------------------------------------------------------
- * Name.......: YSAMPLE1.FMT
- * Date.......: 8-22-93
- * Version....: dBASE IV, Format 2.0
- * Notes......: Format files use "" as delimiters!
- *---------------------------------------------------------------------
-
- *-- Format file initialization code --------------------------------------------
-
- *-- Some of these PRIVATE variables are created based on CodeGen and may not
- *-- be used by your particular .fmt file
- PRIVATE ll_talk, ll_cursor, lc_display, lc_status, ll_carry, lc_proc
-
- IF SET("TALK") = "ON"
- SET TALK OFF
- ll_talk = .T.
- ELSE
- ll_talk = .F.
- ENDIF
- ll_cursor = SET("CURSOR") = "ON"
- SET CURSOR ON
- lc_display = SET("DISPLAY")
- lc_status = SET("STATUS")
- *-- SET STATUS was ON when you went into the Forms Designer.
- IF lc_status = "OFF"
- SET STATUS ON
- ENDIF
-
- *-- Window for memo field Arg_pro.
- DEFINE WINDOW wndow1 FROM 10,10 TO 18,69
-
- *-- @ SAY GETS Processing. -----------------------------------------------------
-
- *-- Format Page: 1
- @ 1,1 SAY "Single-memo application: if you use only one memo field in one place in your"
- @ 2,1 SAY "entire dBASE application, you can hard-code your YAME parameters in the"
- @ 3,1 SAY "CONFIG.DB file, as was done in this case. Examine the YSAMPLES.CFG file, and"
- @ 4,1 SAY "you will see the line"
- @ 5,23 SAY "WP = Y /@10,10,18,69 /bd /ss /m57"
- @ 6,1 SAY "which matches the memo field on this dBASE-generated format screen"
- @ 7,0 SAY "────────────────────────────────────────────────────────────────────────────────"
- @ 8,19 SAY "Argument in favor of"
- @ 8,40 GET Topic PICTURE "XXXXXXXXXXXXXXXXXXXX"
- @ 10,10 GET Arg_pro OPEN WINDOW wndow1 ;
- MESSAGE "Press CTRL-HOME to edit, then CTRL-END to save"
- @ 20,28 SAY "by"
- @ 20,31 GET Author PICTURE "XXXXXXXXXXXXXXXXXXXX"
- *-- Format file exit code -----------------------------------------------------
-
- *-- SET STATUS was ON when you went into the Forms Designer.
- IF lc_status = "OFF" && Entered form with status off
- SET STATUS OFF && Turn STATUS "OFF" on the way out
- ENDIF
- IF .NOT. ll_cursor
- SET CURSOR OFF
- ENDIF
-
- IF SET( "DISPLAY" ) <> lc_display
- SET DISPLAY TO &lc_display. && Reset Screen size if changed
- ENDIF
-
- RELEASE WINDOWS wndow1
-
- RELEASE lc_fields,lc_status
- IF TYPE( "ll_echo" ) = "L"
- IF ll_echo
- SET ECHO ON
- ENDIF
- ENDIF
- IF ll_talk
- SET TALK ON
- ENDIF
- *-- EOP: YSAMPLE1.FMT
-