home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / DBRIEF.ZIP / DBRIEF.HLP < prev    next >
Encoding:
Text File  |  1991-03-21  |  21.4 KB  |  544 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. introduction
  20. Introduction To dBRIEF v3.10                 (c) 1990 Global Technologies
  21. ─────────────────────────────────────────────────────────────────────────
  22. dBRIEF is intended to make you more creative and productive as a dBASE 
  23. programmer.  dBRIEF is a new concept in development tools because it is 
  24. designed to be the core of all programming activities, rather than your 
  25. database.  This concept is made possible only through the incredible flexi-
  26. bility of BRIEF and it's own macro language.  All systems in the dBRIEF 
  27. core are controlled by BRIEF macros, even the source generation commands,
  28. so you don't have to leave BRIEF during your application development tasks.
  29.  
  30. You have purchased the most powerful editor and development system avail-
  31. able today.  Enjoy it, and feel free to call (617) 431-2338 for technical
  32. support, or if you have specific concerns or ideas about dBRIEF, call us
  33. Global Technologies Corporation at (303) 337-8701.
  34.  
  35. Bill French
  36. Global Technologies Corporation
  37.  
  38. function_keys
  39. dBRIEF Function Key Assignments
  40. ─────────────────────────────────────────────────────────────────────────
  41. Shft: ┌───┐   Assist Menu         Shft: ┌───┐   dBRIEF Help Menu
  42. Alt:  │f1 │█  Borders             Alt:  │f2 │█  N/A
  43. Ctrl: └───┘█  Graphics Char ┌     Ctrl: └───┘█  Graphics Char ┐
  44.        ▀▀▀▀▀                             ▀▀▀▀▀
  45. Shft: ┌───┐   Reindent            Shft: ┌───┐   Preprocessor
  46. Alt:  │f3 │█  Display Structure   Alt:  │f4 │█  Print
  47. Ctrl: └───┘█  Graphics Char │     Ctrl: └───┘█  Graphics Char ─
  48.        ▀▀▀▀▀                             ▀▀▀▀▀
  49. Shft: ┌───┐   Comment             Shft: ┌───┐   Status
  50. Alt:  │f7 │█  Record Macro        Alt:  │f8 │█  Save Keystroke Macro
  51. Ctrl: └───┘█  Same Line Comment   Ctrl: └───┘█  SourceView Lib
  52.        ▀▀▀▀▀                             ▀▀▀▀▀
  53. Shft: ┌───┐   Delete Macro        Shft: ┌───┐   Keys Macro
  54. Alt:  │f9 │█  Revision            Alt:  │f10│█  Compile
  55. Ctrl: └───┘█  Interpreter         Ctrl: └───┘█  Expand Template
  56.        ▀▀▀▀▀                             ▀▀▀▀▀
  57. Command Key Assignments
  58. ─────────────────────────────────────────────────────────────────────────
  59.  
  60. Ctrl Up     Display current program position statistics.
  61. Ctrl A      Display APX Application Dictionary Menu.
  62. Ctrl C      Insert coordinates phrase "^UX,^UY,^LX,^LY".
  63. Ctrl F      FunctionWriter or FrameWriter (depending on type of mark).
  64. Ctrl H      Insert program, procedure, or function header.
  65. Ctrl O      Open or close an object editing window.
  66. Ctrl S      Display previous scan menu.              
  67. Ctrl V      Display current dBRIEF version number.
  68.  
  69. Alt =       Invoke SourceView, auto-conditional, or window parameters.
  70. Alt Y       Tag/Untag line.
  71.  
  72.  
  73.  
  74.  
  75. dBRIEF Function Key Graphics               F10 set graphics to <type> ─┘
  76. ─────────────────────────────────────────────────────────────────────────
  77.  
  78.       Control FKeys    Normal   Double  Combination  Special
  79.       ─────────────    ──────   ──────  ───────────  ───────
  80.        ┌──┐  ┌──┐       (def)
  81.        │f1│█ │f2│█      ┌  ┐     ╔  ╗       ╒  ╕       ░  ▒
  82.        └──┘█ └──┘█
  83.         ▀▀▀▀  ▀▀▀▀
  84.        ┌──┐  ┌──┐
  85.        │f3│█ │f4│█      │  ─     ║  ═       │  ═       «  »
  86.        └──┘█ └──┘█
  87.         ▀▀▀▀  ▀▀▀▀
  88.        ┌──┐  ┌──┐
  89.        │f5│█ │f6│█       └  ┘    ╚  ╝       ╘  ╛       █  ▀
  90.        └──┘█ └──┘█
  91.         ▀▀▀▀  ▀▀▀▀
  92.  
  93.  
  94. functionwriter
  95. FunctionWriter                                          Line Mark, Ctrl-F
  96. ─────────────────────────────────────────────────────────────────────────
  97. The dBRIEF FunctionWriter is a feature that helps you convert in-line
  98. source code to a function or procedure.
  99.  
  100. Mark a block of source code, with Alt-A and then press Ctrl-F.  Function-
  101. Writer will prompt for the name of the new function in addition to other
  102. pertinent information.  The marked block will be moved automatically to
  103. the specified destination file and replaced with a reference to the new
  104. routine.
  105.  
  106. The new routine will be created complete with headers [if ON] and the
  107. source will be indented to the proper level.  A same-line-comment will
  108. also be created if specified.
  109.  
  110. The cursor will be positioned inside parenthesis, or at the end of the
  111. routine reference in the case of a procedure.
  112.  
  113. scanner
  114. Scanner Operations                                  F10 scan [option] ─┘
  115. ─────────────────────────────────────────────────────────────────────────
  116. dBRIEF includes a feature that allows you to display a window menu of all
  117. routines in a program, all buffers, or entire applications. It is 
  118. accessed with the SCAN command as shown below.
  119.  
  120.    Command: scan [any specified text word] <cr>
  121.    Command: scan routines  <cr>
  122.    Command: scan procedures  <cr>
  123.    Command: scan functions  <cr>
  124.    Command: scan comments  <cr>
  125.    Command: scan notes  <cr>
  126.    Command: scan tags  <cr>
  127.  
  128. When the scanner has completed the isolation, a window menu will pop-up 
  129. allowing you to jump to any of the isolated lines.  
  130.  
  131.  
  132. Scanner Operations                           F10 scan global [option] ─┘
  133. ─────────────────────────────────────────────────────────────────────────
  134. The scanner can develop menu lists based on all buffers in memory or all
  135. applications specified in an APX application dictionary.
  136.  
  137.    Command: scan global [any specified text word] <cr>
  138.    Command: scan global routines  <cr>
  139.    Command: scan global procedures  <cr>
  140.    Command: scan global functions  <cr>
  141.    Command: scan global size  <cr>
  142.  
  143. The "scan global size" feature allows you to create a list of all pro-
  144. grams in memory and the number of source lines and bytes per file with
  145. totals for all programs.
  146.  
  147.  
  148.  
  149.  
  150. Scanner Operations                                  F10 scan previous ─┘
  151. ─────────────────────────────────────────────────────────────────────────
  152. The scanner can also display the most recent scan menu instantly.  SCAN
  153. PREVIOUS will pop-up the most recent scan menu but will not display the
  154. scan criteria or the total file sizes in bytes and lines if the previous
  155. scan was SCAN GLOBAL SIZE.                                     
  156.  
  157.    Command: scan previous  <cr>
  158.  
  159. SCAN PREVIOUS does not work with respect to APX scans.
  160.  
  161. Ctrl-S has been assigned to SCAN PREVIOUS.
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168. Scanner Operations                              F10 scan apx [option] ─┘
  169. ─────────────────────────────────────────────────────────────────────────
  170. The scanner can develop menu lists based on all buffers in memory or all
  171. applications specified in an APX application dictionary.
  172.  
  173.    Command: scan apx [any specified text word] <cr>
  174.    Command: scan apx routines  <cr>
  175.    Command: scan apx procedures  <cr>
  176.    Command: scan apx functions  <cr>
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186. display
  187. Display Structure                               F10 display structure ─┘
  188. ─────────────────────────────────────────────────────────────────────────
  189. The DISPLAY STRUCTURE command will display the file structure of any data 
  190. base file in a window, buffer, or to the the printer. The process only 
  191. takes a few seconds and is intended to allow easy access to dbf files 
  192. while editing applications. If you display to a buffer, the text file is 
  193. saved as a normal file for possible use in documentation, etc.
  194.  
  195.    Command: display structure [dbf file] to print
  196.    Command: display structure [dbf file] to buffer
  197.    Command: display structure [dbf file] to window
  198.  
  199. This feature creates a text file of the file structure for later use
  200. when the "buffer" option is used.  The text file will have the same name
  201. as the database, except it will have an STR extension.
  202.  
  203.  
  204.  
  205. _status
  206. Display Status                                     F10 display status ─┘
  207. ─────────────────────────────────────────────────────────────────────────
  208. This command simply displays the SET command status of all variable and 
  209. constant parameters in dBRIEF.  A list of the variables and the SET 
  210. commands to change them are shown below.
  211.  
  212.       Auto Indent              set indent on/off
  213.       Auto Header              set header on/off
  214.       Default Extension        set extension on/off
  215.       Comment Tab              set comment to <column>
  216.       Template Editing         set template on/off
  217.       Indent Level             set indent to <number>
  218.       Graphics Mode            set graphics to <mode>
  219.       Drawing & Graphics       set draw on/off
  220.       SourceView Library       set library to <SRC file name>
  221.       Conditional line #'s     set conditional lines on/off
  222.       Procedure Indenting      set procedure indent on/off
  223.  
  224. reindent
  225. Indentation System For Program Files                     F10 reindent ─┘
  226. ─────────────────────────────────────────────────────────────────────────
  227. This routine automatically indents dBASE command files for each con-
  228. ditional statement.  With the source file in the current buffer, press 
  229. F10, followed by "reindent" ─┘.
  230.  
  231.    Command: reindent  <cr>
  232.  
  233. Each line of source will be examined and adjusted accordingly. The source
  234. file may have any file extension.  All same line comments will also be 
  235. adjusted to the current comment tab level unless the comment tab is set 
  236. to zero.
  237.  
  238. If PROCEDURE INDENTING is set OFF, source within procedures and functions
  239. will be justified to the left margin.  Source lines with continuation
  240. characters will be indented one additional level after the initial line.
  241.  
  242.  
  243. print
  244. Printing                                                    F10 print ─┘
  245. ─────────────────────────────────────────────────────────────────────────
  246. The "print" command now serves a triple purpose in the BRIEF/dBRIEF 
  247. system.  When presented with a database file extension, the "print" 
  248. command will print the database file structure. When presented with a
  249. program file extension, it will print the source code for the specified
  250. file.  Even if that program file is not the current buffer or not loaded
  251. into BRIEF.  Some examples follow:
  252.  
  253.    Command: print <file name.ext>  <cr>    or...
  254.    Command: print c:\dbase\customer.dbf  <cr>
  255.  
  256. The same command can be used to print a program.
  257.  
  258.    Command: print customer.prg  <cr>       or...
  259.    Command: print  <cr>
  260.  
  261.  
  262. preprocessor
  263. dBRIEF Preprocessor                                           F10 pre ─┘
  264. ─────────────────────────────────────────────────────────────────────────
  265. The dBRIEF Preprocessor works like other preprocessors except that it 
  266. performs all translations in BRIEF on all current buffers that have "pre"
  267. file extensions.
  268.  
  269.    Command: pre  <cr>
  270.  
  271. The output files will have "prg" extensions and will be created as current
  272. BRIEF buffers.  An additional option allows you to select only the current
  273. buffer for preprocessing.
  274.  
  275.                   Supported Preprocessor Directives
  276.       ─────────────────────────────────────────────────────────
  277.       #define     name          "Bill French"
  278.       #include    "header.h"
  279.       #define     return        13
  280.       #define     inc(x)        x=(x+1)/25*var_+x
  281.  
  282. interface
  283. External Interface Macros                               F10 interface ─┘
  284. ─────────────────────────────────────────────────────────────────────────
  285. The external interface has been redesigned to allow easy reconfiguration
  286. for access to any application.  The interface is configured by editing
  287. the file INTERFAC.CFG, and the format for this configuration file is 
  288. shown below.
  289.  
  290.    dBASE III Plus        ;dbase       |Run dBASE III Plus Interpreter.
  291.    Clear Flowcharting    ;clear       |Run Clear Flowcharting System.
  292.    Word                  ;word        |Run Microsoft Word.
  293.    FoxPro                ;fox         |Run FoxPro.
  294.  
  295.   └───────────────────┘ └──────────┘ └──────────────────────────────┘
  296.           Menu            Program             Description
  297.  
  298. The first menu option will be executed when you press Ctrl-F9.  All other
  299. options require menu invocation.
  300.  
  301. library
  302. SourceView Librarian                                      F10 library ─┘
  303. ─────────────────────────────────────────────────────────────────────────
  304. This command opens a window to a source library.  The window lets you 
  305. scroll up and down displaying descriptions of source fragments contained
  306. in the library. Press the return key to insert source from the library 
  307. into the current buffer.
  308.  
  309. To add new fragments to the current library, mark the block to be added
  310. with Alt-A, and execute the following command:
  311.  
  312.    Command: library  <cr>
  313.       or...
  314.    Command:  sv  <cr>
  315.  
  316. dBRIEF will prompt for the fragment name and description.  The fragment
  317. may be recalled anytime by typing the name you gave it into the buffer
  318. being edited, and pressing Alt-=.
  319.  
  320. SourceView Librarian                                      F10 library ─┘
  321. ─────────────────────────────────────────────────────────────────────────
  322. SourceView libraries can also be accessed by specifying the path and file
  323. name of the library before the module name.  For example to insert a 
  324. source fragment named "dialog_frame" stored in a library named dialog.src
  325. contained in a remote directory, enter the following command into the 
  326. current buffer and then press Alt=.
  327.  
  328.    if ...
  329.       {commands...}
  330.       {commands...}
  331.       e:\dir1\subdir1\dialog.src\dialog_frame  <alt=>
  332.                 
  333. This command will fetch the source associated with the name dialog_frame
  334. and insert it at the proper indent level at the point where the reference
  335. was made.
  336.  
  337.  
  338. object
  339. Object Editing                                                     Ctrl-O
  340. ─────────────────────────────────────────────────────────────────────────
  341. Object references in a command file are statements like DO PROC, DO 
  342. PROC.PRG, and MEMVAR=UDF().  These types of references can be edited 
  343. without searching for the source code location.
  344.  
  345. Foe example, position the cursor to a line with an object reference in it 
  346. and press Ctrl-O to edit.  If the procedure exists in the current buffer
  347. or if it exists on disk as a program file, or it exists in a buffer in 
  348. memory, the object editor will pop just program, procedure, or function
  349. into a window so that it can be edited without leaving the calling point.
  350.  
  351. The object editor supports format files, functions, procedures, and en-
  352. tire program files.
  353.  
  354. When you are finished editing the procedure, just press Ctrl-O to save it
  355. back as an inline procedure or as a seperate program file.
  356.  
  357. optimize
  358. Code Optimizer                                           F10 optimize ─┘
  359. ─────────────────────────────────────────────────────────────────────────
  360. OPTIMIZE will strip a command file of unnecessary blank lines, blank
  361. spaces, indentations, comment lines, and convert spaces to tab characters
  362.  
  363. Prompts will appear when you execute OPTIMIZE, allowing you to select the
  364. various optimizing functions.  For example, it is possible to remove
  365. comment lines without removing indentation.
  366.                                     ┐             
  367.    Remove indentations? [yN]:       │             This operation will
  368.    Remove comments? [yN]:           │             create a backup file   
  369.    Remove blank lines? [yN]:        │── Prompts   in the current direc-
  370.    Remove trailing blanks? [yN]:    │             tory with a BAK file
  371.    Convert spaces to tabs? [yN]:    │             extension.
  372.                                     ┘
  373. Some compilers and interpreters behave differently when spaces are con-
  374. verted to tab characters.  Consult your manual before converting large 
  375. quantities of source code.
  376. comment
  377. Commenting Facilities                                     F10 comment ─┘
  378. ─────────────────────────────────────────────────────────────────────────
  379. The automatic commenting facility can write same-line comments, match 
  380. conditional statements, and mark and unmark multiple lines of source with
  381. comment characters.
  382.  
  383.   Same-line:    Press Ctrl-F7 for a single line.  F10 comment pro-
  384.                 gram for entire buffer or marked block.
  385.  
  386.   Conditional:  F10 comment conditionals for entire buffer or marked
  387.                 block.
  388.  
  389.   Source block: F10 comment block.
  390.  
  391.  
  392.  
  393.  
  394.  
  395. frame
  396. Frame Generator                                       Column Mark, Ctrl-F
  397. ─────────────────────────────────────────────────────────────────────────
  398. This command will create frames with two types of border characters,
  399. single and double lines.  The FRAME feature requires just two steps. 
  400.  
  401. First, mark a block on screen using BRIEF's column mark facility, where
  402. you want the frame to display.  Then press Ctrl-F.  The frame code will 
  403. be created.
  404.  
  405. Single and double borders are controlled by the status of SET GRAPHICS
  406. TO.  When set to NORMAL, single lines will be generated, when set to 
  407. DOUBLE, double lines will be created.
  408.  
  409. If you want the source code to be generated at specific location in the
  410. program, place a "~frame~" marker with Ctrl-F before marking the size
  411. and position of the frame.
  412.  
  413.  
  414. revision
  415. Revision Tracking                                        F10 revision ─┘
  416. ─────────────────────────────────────────────────────────────────────────
  417. Revision tracking will insert the date and time of the last code change
  418. as well as a description in the comment section of the header block.  To
  419. add a revision number and description, enter the command as follows:
  420.  
  421.      Command: revision [rev #] [description]  <cr>
  422.  
  423. The revision information will be inserted after the last revision in the
  424. header comment section.  The revision command will only work if a header
  425. has been invoked at the top of the program.  See HEADER command for addi-
  426. tion details.  If you need to enter spaces in a revision number or
  427. description, you must enclose them in double quotes.
  428.  
  429.  
  430.  
  431.  
  432.  
  433. scan "revi"
  434. Revision Scanning                                        F10 scan rev ─┘
  435. ─────────────────────────────────────────────────────────────────────────
  436. A useful way to review the revision numbers in a file is to use the
  437. scanner in the following way:
  438.  
  439.      Command: scan rev  <cr>
  440.  
  441. The scanner will open a menu window of every revision logged to the pro-
  442. gram.  
  443.  
  444. You must use the HEADER and REVISION commands to keep track of revision
  445. data.
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453. scatter_gather
  454. Scatter and Gather                                 F10 scatter/gather ─┘
  455. ─────────────────────────────────────────────────────────────────────────
  456. Create automatic STORE, REPLACE and INITIALIZE procedures for all fields
  457. in a database with the following commands:
  458.  
  459.      Command: scatter/store sample.dbf  <cr> 
  460.        _NAME      = sample->name                                       
  461.        _ADDRESS   = sample->address                                    
  462.        _CITY      = sample->city                                       
  463.        _STATE     = sample->state                                      
  464.        _ZIP       = sample->zip       
  465.  
  466.      Command: gather/replace sample.dbf  <cr>  
  467.        REPLACE sample->NAME       WITH _name     
  468.        REPLACE sample->ADDRESS    WITH _address  
  469.        REPLACE sample->CITY       WITH _city     
  470.        REPLACE sample->STATE      WITH _state    
  471.        REPLACE sample->ZIP        WITH   _zip
  472. draw
  473. Drawing With Graphics Characters                             F10 draw ─┘
  474. ─────────────────────────────────────────────────────────────────────────
  475. Character graphics can be employed easily with the following commands.
  476. Using the DRAW command without parameters will display a pop-up menu.
  477.  
  478.      Command: draw frame  <cr>
  479.      Command: draw cursor  <cr>
  480.      Command: draw line  <cr>
  481.      Command: draw box  <cr>
  482.      Command: draw area  <cr>
  483.  
  484. DRAW CURSOR will change the cursor keys into a drawing mode. The follow-
  485. ing SET command or the NODRAW command will change the cursor keys back to
  486. their normal mode.
  487.  
  488.      Command: nodraw  <cr>
  489.      Command: set draw off  <cr>
  490.  
  491.  
  492. setup
  493. Easy Configuration                                          F10 setup ─┘
  494. ─────────────────────────────────────────────────────────────────────────
  495. dBRIEF may be reconfigured quickly and easily from the while in BRIEF.
  496. Simply press F10 and type:
  497.  
  498.      │    (BRIEF Text Area)
  499.      ╘══════════════════════════════════════════════
  500.      Command: setup  <cr>
  501.  
  502. The setup window will display after a few seconds.  Use the arrow keys
  503. and <cr> to change any of the SET values. Press F10 or <cr> through
  504. all prompts when the changes are complete.
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511. coords
  512. Window Coordinate Substitution                             F10 coords ─┘
  513. ─────────────────────────────────────────────────────────────────────────
  514. The command "coords" will allow you to create X,Y,X,Y framing coordinates
  515. for use with the window parameters substitution feature.  When   issued, 
  516. the "coords" command will generate the following text phrase:
  517.  
  518.      ^UX,^UY,^LX,^LY
  519.  
  520. These facsimile parameters can then be used with a column mark to produce
  521. actual frame coordinates.  This phrase can be used in any function or 
  522. command such as @ ^ux,^uy TO ^lx,^ly.  Mark a block with Brief's Alt-C
  523. feature, and then use Alt= to substitute the parameters of the marked
  524. area directly into the command line.
  525.  
  526.  
  527.  
  528.  
  529.  
  530. replace
  531. Global Search & Replace         F10 replace global <text> with <text> ─┘
  532. ─────────────────────────────────────────────────────────────────────────
  533. This feature enables you to search and replace specified text in all
  534. buffers or in all programs contained in the current APX dictionary.  You
  535. may also pause on each replacement as with BRIEF's search and replace
  536. feature.
  537.  
  538.       Command+: replace global <text> with <text>
  539.       Command+: replace apx <text> with <text>
  540.  
  541. Following this command, dBRIEF will prompt to replace all or pause on 
  542. each replacement.  Once the replacement process begins, it can be
  543. terminated by pressing any key.
  544.