home *** CD-ROM | disk | FTP | other *** search
/ Shareware Gold 1 / The_Golden_ROM_Series_-_Shareware_Gold_Volume_1_Number_11_-_SK_89-301_-_1989.iso / LIB012 / PCF1 / card next >
Text File  |  1988-11-11  |  12KB  |  298 lines

  1.  
  2.  
  3.         +-----------------------------------+
  4.         |  PC-File:dB QUICK REFERENCE CARD  |
  5.         +-----------------------------------+
  6.  
  7.  
  8. SPECIAL KEYS WHEN TYPING
  9.  
  10. KEY                    FUNCTION
  11. ───────      ─────────────────────────────────────────────
  12. (Alt)C       Calculator hot-key
  13. (Alt)D       drop to DOS
  14. (Alt)E       activate Editor (in memo field)
  15. (Alt)H       HELP
  16. (Alt)M       load new Macro smart keys
  17. (Alt)P       Print screen (cleaned up)
  18. (Alt)T       TEACH mode (on/off)
  19. (Alt)Y       Smart key memorize (on/off)
  20. (Ctrl)A      accept data (same as (F10))
  21. (Ctrl)B      blank right, to end of field
  22. (Ctrl)D      duplicate all of previous record
  23. (Ctrl)E      activate Editor (in memo field)
  24. (Ctrl)F      duplicate Field from previous record
  25. (Ctrl)L      print a Label (Snapshot)
  26. (Ctrl)P      Print screen (cleaned up)
  27. (Ctrl)R      read into memory
  28. (Ctrl)W      write from memory
  29. (Del)        delete the character at the cursor
  30. down arrow   move cursor to following field or line
  31. (End)        cursor right, past last significant character
  32. (Enter)      move cursor to next field
  33. (Esc)        cancel this operation
  34. (F10)        accept data
  35. (Home)       cursor left, to start of field
  36. (Ins)        Insert mode (on/off)
  37. left arrow   move cursor left 1 position
  38. (PgDn)       cursor to last input field on screen, or
  39.                page down (in browse mode)
  40. (PgUp)       cursor to first input field on screen, or
  41.                page up (in browse mode)
  42. right arrow  move cursor right 1 position
  43. tab          move cursor to next field, or
  44.                move browse window one field to the right
  45. tab left     move cursor to prior field, or
  46.                move browse window one field to the left
  47. tilde (~)    the "flip data" character
  48. up arrow     move cursor to preceding field or line
  49.  
  50. DEFINING THE DATA BASE
  51.     Edit mask examples:
  52.        :azAZ:     allows only alphabetic characters
  53.        :AAaaEEeeIIiiOOooUUuu: allows only vowels
  54.        :09//--  : good for date fields
  55.     Automatic Fields (In edit mask area)
  56.        :DATE*:      mm-dd-yy       :TIME*:    hh:mm
  57.        :MM/DD/YY*:  mm/dd/yy       :UNIQUE*:  unique no.
  58.        :DD/MM/YY*:  dd/mm/yy       :DUPE*:    auto dupe
  59.        :YYMMDD*:    yymmdd
  60.        :MO*:        mm
  61.        :DY*:        dd
  62.        :YR*:        yy
  63.     Automatic field can also have an input edit mask:
  64.        :DATE*09//:
  65.     Automatic field only when adding records:
  66.        :DATE*:*A
  67.     Automatic field only when modifying:
  68.        :DATE*:*M
  69.     Automatic Constant
  70.        "New York City"
  71.        "Des Moines"*A         (only when adding records)
  72.        "Milton Freewater"*M   (only when modifying)
  73.     Calculated fields example:
  74.        ((cost + adjustments) / 100).2
  75.     Relational lookup example:
  76.        (@empno,empmast,empno,salary)
  77.  
  78. FIND: TYPES OF SEARCHES
  79.     xxx         generic (exact, first part)
  80.     ~xxx        scan across
  81.     ?xxx        sounds-like
  82.     ___x        wildcard
  83.  
  84.  
  85. WHEN CALCULATIONS ARE ASKED FOR:
  86.   arithmetic operators:
  87.       +   addition
  88.       -   subtraction or negation
  89.       *   multiplication
  90.       /   division
  91.       %   modulo (remainder)
  92.       ^   exponentiation
  93.   logical operators:
  94.       &   and
  95.       |   or
  96.   comparison operators:
  97.       =   equal
  98.       !=  not equal
  99.       >   greater than
  100.       >=  greater than or equal
  101.       <   less than
  102.       <=  less than or equal
  103.    special calculations:
  104.      (@RANDOM#)   creates a random number between 0 and 1
  105.      (@TODAY#)    creates todays "day number" relative to 1/1/1901
  106.      (@DAY#,mask) gets date from stack, converts to day-number.
  107.                   mask tells date format:
  108.                   ymd  ydm  mdy  myd  dmy  dym  yymmdd
  109.      (@DATE,mask) gets day-number from stack, converts to date.
  110.                   mask tells date format: examples  mdy/   dmy-
  111.      (@key1,dbase2,key2,answer2)
  112.                   a relational lookup
  113.    example arithmetic calculation:
  114.           ((cost + adjust) / 100)
  115.    example comparison calculation:
  116.           ((age >= 21 & age < 40) & sex = "F")
  117.    example date arithmetic: difference btwn 2 dates
  118.           (date2(@DAY#,mdy) - (date1(@DAY#,mdy))
  119.    example date arithmetic: date 60 days later
  120.           ((date1(@DAY#,mdy) + 60)(@DATE,mdy/))
  121.  
  122. COMMANDS WITHIN SMART KEY DATA
  123.     [2]    simulate "blank to right" key
  124.     [4]    simulate "dupe record" key
  125.     [6]    simulate "dupe field" key
  126.     [9]    simulate tab-rt key
  127.     [12]   simulate "Snapshot Label" key
  128.     [13]   simulate (Enter) key
  129.     [18]   simulate "read into memory" key
  130.     [23]   simulate "write from memory" key
  131.     [271]  simulate tab-left key
  132.     [324]  simulate (F10) key
  133.     [328]  simulate cursor up key
  134.     [335]  simulate End key
  135.     [336]  simulate cursor down key
  136.     [338]  simulate Ins key
  137.     [339]  simulate Del key
  138.     ^n     imbed smart key #n  (0-9)
  139.     ^K     get keyboard input
  140.  
  141. REPORT COMMAND LANGUAGE
  142.  The sections of the report
  143.   :COVER              once at beginning of report
  144.   :HEADING            top of each page
  145.   :DETAIL             once for each record printed
  146.   :SUBTOTAL           at each subtotal break
  147.   :FOOTING            bottom of each page
  148.   :TOTAL              at end of the report
  149.  Commands in print control file (1 command per line):
  150.   [xxx]               field xxx data prints here
  151.   [COUNT*]            print count of records printed so far
  152.   [DATE*]             today's date prints here
  153.   [KEYIN*prompt]      ask operator input, print here
  154.   [PAGE*]             print page number here
  155.   [RECORDS*]          print no. of rcds in database
  156.   [SELECT*]           print the selection criteria
  157.   [SORT*]             print the primary sort field name
  158.   [SUBCOUNT*]         print count of rcds in subtotal group
  159.   [SUBFLD*]           print field name of subtotal break fld
  160.   [SUBID*]            print data from subtotal break field
  161.   [TIME*]             the current time prints here
  162.   A nn,nnn,nn         print ASCII printer control codes here
  163.   <xxx>               field xxx data (excess spaces removed)
  164.   "xxx"               a constant
  165.   =nn                 tab to column nn
  166.   /n                  insert n newlines
  167.   .FF                 form feed to new page
  168.   .CP nn              conditional skip to new page
  169.   .IF (calculation)   if calculation is true, include following cmds
  170.   .ELSE               "      "       " not true, include  "      "
  171.   .ENDIF              end of IF construct
  172.   (a+b):z,zz#.##:     a calculated answer, with output edit mask
  173.   (@K1,DB,k2,x2):@@@: relational lookup
  174.  Output Edit Masks (examples)
  175.   :@@@@@@@@@@@@@:     character field mask
  176.   :#####:             numbers, all digits appear
  177.   :zz,zz#.##:         zero suppress, with commas
  178.   :$$$$$$.##:         floating dollar sign
  179.   :******.##:         asterisk check protection
  180.   :=,12,0,100,* :     bar chart mask
  181.  
  182. MAIL-MERGE COMMANDS  (IMBED IN LETTER)
  183.  .<fieldname>            insert data, blanks stripped
  184.  .[fieldname]            insert data, no blanks removed
  185.  .<KEYIN*prompt>         insert data from keyboard
  186.  .<DATE*>                insert today's date
  187.  .GROUP                  start a group (no blank lines)
  188.  .EGROUP                 end a group
  189.  .EGROUP R               end a group, replace blank lines
  190.  .FORMFEED               skip to new page on printer
  191.  .FF                     skip to new page on printer
  192.  .CP nn                  conditional skip to new page
  193.  .IF (calculation)       if calculation true, include following
  194.  .ELSE                   "      "       not true, include  "
  195.  .ENDIF                  end of IF construct
  196.  .<(a+b):z,zz#.##:>      a calculated answer
  197.  .<(@K1,DB2,k2,x2):@@@:> a relational lookup answer
  198.  
  199. SORT ALTERNATIVES (SORT FIELD #n)
  200.     fieldname       sort on entire field
  201.     fieldname,3,5   data starts in byte=3, length=5
  202.     fieldname,R     Roman Numeral sort
  203.     fieldname,S     sounds-like sort
  204.     (@RANDOM#)      random sequence
  205.     (fieldname(@DAY#,mdy))
  206.                     sort on field that's in mo/dy/yr format
  207.  
  208. COMMANDS IN PROFILE FILES
  209.  /ADDPW,xxx      password allowing additions to database
  210.  /AUTOSKIP       automatic skip to next field when full
  211.  /BG,n           set background screen color 0-7 (note 1)
  212.  /CASEFIND       searches will be case sensitive
  213.  /CASESORT       sorts will be case sensitive
  214.  /CONDENSED,n,n  ASCII values to cause condensed print
  215.  /DELAY,n        slow down smart keys n/18 of a second
  216.  /DELPW,xxx      password allowing deletions in database
  217.  /DRIVE,x        default disk for data
  218.  /EGA            use 35 lines on EGA or 40 lines on VGA
  219.  /EURODATE       Use european date format in reports
  220.  /EXPERT         smaller menu prompts where possible
  221.  /FASTVIEW       fastest screen writes (possible snow)
  222.  /FG,n           set foreground screen color 0-15 (note 1)
  223.  /FG2,n          set alternate color (field names, highlight)
  224.  /FILE,xxx       default database name
  225.  /KEYIN,xxx      keystrokes to run at startup
  226.  /LAN            turns on LAN file sharing mode
  227.  /LBL,xxx        gives Snapshot Label format (note 2)
  228.  /MEMOW,n        the width of the Memo window
  229.  /MODPW,xxx      password allowing modify in database
  230.  /NORMAL,n,n     ASCII values to cause normal print size
  231.  /NOTRAP         don't trap disk errors and (Ctrl)break
  232.  /PAGELEN,n      size of page (no. of print lines)
  233.  /PATH,xxx       default subdirectory for data
  234.  /PRPORT,LPTx:   printer output port
  235.  /SORTPW,xxx     password allows sorts on database
  236.  /SYSPW,xxx      password allows system operations
  237.  /USEPW,xxx      password allows use of the database
  238.  /VGA            use 35 lines on EGA or 40 lines on VGA
  239.  /XXXPW,xxx      password allows override of all passwords
  240.  
  241. Note 1.
  242.  Screen colors: bg 0-7, fg 0-15, fg2 0-15
  243.      0 black   4 red        8 gray        12 lt. red
  244.      1 blue    5 magenta    9 lt. blue    13 lt. magenta
  245.      2 green   6 brown     10 lt. green   14 yellow
  246.      3 cyan    7 white     11 lt. cyan    15 bright white
  247.  
  248. Note 2.
  249.     Snapshot Feature specification:
  250.     dev,t,f,f,f,f......
  251.         dev = LPT1:, LPT2:, MYFILE, etc.
  252.         t   = no. chars to tab in at left margin
  253.         f   = field number, or command
  254.               0   = new line
  255.              -n   = insert n spaces
  256.              'xx' = insert xx (a constant)
  257.  
  258.    SPECIAL KEYS IN EDITOR
  259.  
  260.    Cursor movement keys
  261.    -------------------
  262.    End                 -  Move to last character of current line.
  263.    Home                -  Move to first position on line.
  264.    PgDn                -  Shift down one screen (if enough left).
  265.    PgUp                -  Shift up one screen (if enough left).
  266.    Ctrl End            -  Move to lower left corner of current window.
  267.    Ctrl Home           -  Move to upper left corner of current window.
  268.    Ctrl Left Arrow     -  Move to beginning of previous word.
  269.    Ctrl PgDn           -  Move to bottom line.
  270.    Ctrl PgUp           -  Move to top line.
  271.    Ctrl Right Arrow    -  Move to beginning of next word.
  272.    Shift Tab           -  Tab to the left
  273.    Tab                 -  Tab to the right
  274.  
  275.    Commands
  276.    --------
  277.    Ctrl \              -  Split line at cursor
  278.    Ctrl A              -  Toggles automatic paragraph wrapping
  279.    Ctrl B              -  Mark corner of block
  280.    Ctrl C              -  Copy marked area (to below cursor)
  281.    Ctrl D              -  Delete blocked area
  282.    Ctrl E              -  Erase from cursor line to end of document
  283.    Ctrl F              -  Fill marked area with selected character
  284.    Ctrl L              -  Mark line or lined area
  285.    Ctrl M              -  Move marked area
  286.    Ctrl O              -  Overlay marked area
  287.    Ctrl R              -  Reformat blocked area. If no area blocked,
  288.                           reformats current paragraph
  289.    Ctrl U              -  Unmark the marked area
  290.    Ctrl V              -  Enable / disable "whoops" key
  291.    Ctrl W              -  "Whoops" - Recall previous buffer
  292.    Esc                 -  Inserts esc character in text -
  293.                           two Esc strokes in a row will exit from editor
  294.    F3                  -  Menu of editor commands
  295.    F5                  -  Delete current line
  296.    F6                  -  Erase from cursor to end of line
  297.    F10                 -  Exit and keep all changes
  298.