home *** CD-ROM | disk | FTP | other *** search
/ Software Du Jour / SoftwareDuJour.iso / BUTTON / PCFILE2.ARC / CARD next >
Encoding:
Text File  |  1988-02-01  |  9.8 KB  |  250 lines

  1.  
  2.  
  3.          +---------------------------------+
  4.          |  PC-FILE+ 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)H       HELP
  15. (Alt)M       load new Macro smart keys
  16. (Alt)P       Print screen (cleaned up)
  17. (Alt)T       TEACH mode (on/off)
  18. (Alt)Y       Smart key memorize (on/off)
  19. (Ctrl)A      accept data (same as (F10))
  20. (Ctrl)B      blank right, to end of field
  21. (Ctrl)D      duplicate all of previous record
  22. (Ctrl)F      duplicate Field from previous record
  23. (Ctrl)L      print a Label (Snapshot)
  24. (Ctrl)P      Print screen (cleaned up)
  25. (Ctrl)R      read into memory
  26. (Ctrl)W      write from memory
  27. (Del)        delete the character at the cursor
  28. down arrow   move cursor to following field or line
  29. (End)        cursor right, past last significant character
  30. (Enter)      move cursor to next field
  31. (Esc)        cancel this operation
  32. (F10)        accept data
  33. (Home)       cursor left, to start of field
  34. (Ins)        Insert mode (on/off)
  35. left arrow   move cursor left 1 position
  36. (PgDn)       cursor to last input field on screen, or
  37.                page down (in browse mode)
  38. (PgUp)       cursor to first input field on screen, or
  39.                page up (in browse mode)
  40. right arrow  move cursor right 1 position
  41. tab          move cursor to next field, or
  42.                move browse window one field to the right
  43. tab left     move cursor to prior field, or
  44.                move browse window one field to the left
  45. tilde (~)    the "flip data" character
  46. up arrow     move cursor to preceding field or line
  47.  
  48. DEFINING THE DATA BASE
  49.     Special Characters
  50.        #     At the end of the field name creates a numeric
  51.              field.  Example: QTY#
  52.     Edit mask examples:
  53.        :azAZ:     allows only alphabetic characters
  54.        :AAaaEEeeIIiiOOooUUuu: allows only vowels
  55.        :09//--  : good for date fields
  56.     Automatic Fields (In edit mask area)
  57.        :DATE*:      mm-dd-yy       :TIME*:    hh:mm
  58.        :MM/DD/YY*:  mm/dd/yy       :UNIQUE*:  unique no.
  59.        :DD/MM/YY*:  dd/mm/yy       :DUPE*:    auto dupe
  60.        :YYMMDD*:    yymmdd
  61.        :MO*:        mm
  62.        :DY*:        dd
  63.        :YR*:        yy
  64.     Automatic field can also have an input edit mask:
  65.        :DATE*09//:
  66.     Automatic field only when adding records:
  67.        :DATE*A:
  68.     Automatic field only when modifying:
  69.        :DATE*M:
  70.     Automatic Constant
  71.        "New York City"
  72.        "Des Moines"*A         (only when adding records)
  73.        "Milton Freewater"*M   (only when modifying)
  74.     Calculated fields example:
  75.        ((cost + adjustments) / 100).2
  76.     Relational lookup example:
  77.        (@empno,empmast,empno,salary)
  78.  
  79. FIND: TYPES OF SEARCHES
  80.     xxx         generic (exact, first part)
  81.     ~xxx        scan across
  82.     ?xxx        sounds-like
  83.     ___x        wildcard
  84.  
  85.  
  86. WHEN CALCULATIONS ARE ASKED FOR:
  87.   arithmetic operators:
  88.       +   addition
  89.       -   subtraction or negation
  90.       *   multiplication
  91.       /   division
  92.       %   modulo (remainder)
  93.       ^   exponentiation
  94.   logical operators:
  95.       &   and
  96.       |   or
  97.   comparison operators:
  98.       =   equal
  99.       !=  not equal
  100.       >   greater than
  101.       >=  greater than or equal
  102.       <   less than
  103.       <=  less than or equal
  104.    special calculations:
  105.      (@RANDOM#)   creates a random number between 0 and 1
  106.      (@TODAY#)    creates todays "day number" relative to 1/1/1901
  107.      (@DAY#,mask) gets date from stack, converts to day-number.
  108.                   mask tells date format:
  109.                   ymd  ydm  mdy  myd  dmy  dym  yymmdd
  110.      (@DATE,mask) gets day-number from stack, converts to date.
  111.                   mask tells date format: examples  mdy/   dmy-
  112.      (@key1,DBASE2,key2,ANSWER2)
  113.                   a relational lookup
  114.    example arithmetic calculation:
  115.           ((cost + adjust) / 100)
  116.    example comparison calculation:
  117.           ((age >= 21 & age < 40) & sex = "F")
  118.    example date arithmetic: differnece btwn 2 dates
  119.           (date2(@DAY#,mdy) - (date1(@DAY#,mdy))
  120.    example date arithmetic: date 60 days later
  121.           ((date1(@DAY#,mdy) + 60)(@DATE,mdy/))
  122.  
  123. COMMANDS WITHIN SMART KEY DATA
  124.     [2]    simulate "blank to right" key
  125.     [4]    simulate "dupe record" key
  126.     [6]    simulate "dupe field" key
  127.     [9]    simulate tab-rt key
  128.     [12]   simulate "Snapshot Label" key
  129.     [13]   simulate (Enter) key
  130.     [18]   simulate "read into memory" key
  131.     [23]   simulate "write from memory" key
  132.     [271]  simulate tab-left key
  133.     [324]  simulate (F10) key
  134.     [328]  simulate cursor up key
  135.     [335]  simulate End key
  136.     [336]  simulate cursor down key
  137.     [338]  simulate Ins key
  138.     [339]  simulate Del key
  139.     ^n     imbed smart key #n
  140.     ^K     get keyboard input
  141.  
  142. REPORT COMMAND LANGUAGE
  143.  The sections of the report
  144.   :COVER              once at beginning of report
  145.   :HEADING            top of each page
  146.   :DETAIL             once for each record printed
  147.   :SUBTOTAL           at each subtotal break
  148.   :FOOTING            bottom of each page
  149.   :TOTAL              at end of the report
  150.  Commands in print control file (1 command per line):
  151.   [xxx]               field xxx data prints here
  152.   [COUNT*]            print count of records printed so far
  153.   [DATE*]             today's date prints here
  154.   [KEYIN*prompt]      ask operator input, print here
  155.   [PAGE*]             print page number here
  156.   [RECORD*]           print record no. of the current record
  157.   [RECORDS*]          print no. of rcds in database
  158.   [SELECT*]           print the selection criteria
  159.   [SORT*]             print the primary sort field name
  160.   [SUBCOUNT*]         print count of rcds in subtotal group
  161.   [SUBFLD*]           print field name of subtotal break fld
  162.   [SUBID*]            print data from subtotal break field
  163.   [TIME*]             the current time prints here
  164.   A nn,nnn,nn         print ASCII printer control codes here
  165.   <xxx>               field xxx data (excess spaces removed)
  166.   "xxx"               a constant
  167.   =nn                 tab to column nn
  168.   /n                  insert n newlines
  169.   .FF                 form feed to new page
  170.   .CP nn              conditional skip to new page
  171.   (a+b):z,zz#.##:     a calculated answer
  172.   (#):zz,zz#:         relative record number
  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,* :     barchart 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.  .<(a+b):z,zz#.##:>      a calculated answer
  194.  .<(@K1,DB2,k2,x2):@@@:> a relational lookup answer
  195.  
  196. SORT ALTERNATIVES (SORT FIELD #n)
  197.     fieldname       sort on entire field
  198.     fieldname,1,2   data starts in byte=1, length=2
  199.     fieldname,R     Roman Numeral sort
  200.     fieldname,S     sounds-like sort
  201.     (@RANDOM#)      random sequence
  202.     (fieldname(@DAY#,mdy))
  203.                     sort on field that's in mo/dy/yr format
  204.  
  205. COMMANDS IN PROFILE FILES
  206.  /ADDPW,xxx      password allowing additions to database
  207.  /AUTOSKIP       automatic skip to next field when full
  208.  /BG,n           set background screen color 0-7 (note 1)
  209.  /CASEFIND       searches will be case sensitive
  210.  /CASESORT       sorts will be case sensitive
  211.  /CONDENSED,n,n  ASCII values to cause condensed print
  212.  /DELPW,xxx      password allowing deletions in database
  213.  /DRIVE,x        default disk for data
  214.  /EXPERT         smaller menu prompts where possible
  215.  /FASTVIEW       fastest screen writes (possible snow)
  216.  /FASTWRITE      speedy (less cautious) disk access
  217.  /FG,n           set foreground screen color 0-15 (note 1)
  218.  /FG2,n          set alternate color (field names, highlight)
  219.  /FILE,xxx       default database name
  220.  /IXBUFSIZE,n    buffer size for index:  0 - 65535;
  221.  /KEYIN,xxx      keystrokes to run at startup
  222.  /LBL,xxx        gives Snapshot Label format (note 2)
  223.  /MODPW,xxx      password allowing modify in database
  224.  /NORMAL,n,n     ASCII values to cause normal print size
  225.  /NOTRAP         don't trap disk errors and (Ctrl)break
  226.  /PAGELEN,n      size of page (no. of print lines)
  227.  /PATH,xxx       default subdirectory for data
  228.  /PRPORT,LPTx:   printer output port
  229.  /SORTPW,xxx     password allows sorts on database
  230.  /SYSPW,xxx      password allows system operations
  231.  /USEPW,xxx      password allows use of the database
  232.  /XXXPW,xxx      password allows override of all passwords
  233.  
  234. Note 1.
  235.  Screen colors: bg 0-7, fg 0-15
  236.      0 black   4 red        8 gray        12 lt. red
  237.      1 blue    5 magenta    9 lt. blue    13 lt. magenta
  238.      2 green   6 brown     10 lt. green   14 yellow
  239.      3 cyan    7 white     11 lt. cyan    15 bright white
  240.  
  241. Note 2.
  242.     Snapshot Feature specification:
  243.     dev,t,f,f,f,f......
  244.         dev = LPT1:, LPT2:, MYFILE, etc.
  245.         t   = no. chars to tab in at left margin
  246.         f   = field number, or command
  247.               0   = new line
  248.              -n   = insert n spaces
  249.              'xx' = insert xx (a constant)
  250.