home *** CD-ROM | disk | FTP | other *** search
/ Best Objectech Shareware Selections / UNTITLED.iso / boss / data / misc / 007 / pcf0.111 / CARD next >
Encoding:
Text File  |  1992-06-01  |  16.3 KB  |  364 lines

  1.  
  2.      PC-FILE 6.5 QUICK REFERENCE CARD
  3.  
  4.      * NAVIGATION KEYS
  5.      Navigation keys allow you to move around the screen.
  6.      ENTER      Activates the current entry; move to the next step
  7.      F10        Same as OK button, only in Simple Search and Edit.
  8.      ESC        Cancels the current operation; move back one step.
  9.      ALT        Toggles (switches) between the work area and the menu bar.
  10.                 If you hold down ALT and press the first letter of a menu
  11.                 bar option, the pull-down menu displays.
  12.      HOME       Moves the cursor to the leftmost position or choice.
  13.      END        Moves the cursor to the rightmost position or choice.
  14.      CTRL-HOME  Moves the cursor to the top-leftmost position in a memo
  15.                 field or edit window
  16.      CTRL-END   Moves the cursor to the bottom-rightmost position in a
  17.                 memo field or edit window
  18.      PGUP       Scrolls the currently visible window area up one screen.
  19.      PGDN       Scrolls the currently visible window area down one screen.
  20.      CTRL-PGUP  When viewing records, moves to the first field.
  21.      CTRL-PGDN  When viewing records, moves to the last field
  22.      TAB        Moves the cursor to the next field, button, or option.
  23.                 The cursor moves from left to right and top to bottom.
  24.                 At the bottom-rightmost position, the cursor moves to
  25.                 the top-leftmost position.
  26.      SHIFT-TAB  Moves the cursor the opposite direction of TAB.
  27.      LFT ARROW  Moves the cursor one position to the left. Within a
  28.                 field, moves one character to the left; on the menu bar
  29.                 or in a dialog box, moves one option, field, or button
  30.                 to the left. At the leftmost position, cursor wraps
  31.                 around to the rightmost position.
  32.      RT ARROW   Moves the cursor the opposite direction of LFT ARROW.
  33.      UP ARROW   Moves cursor up one position, field, or option. At the
  34.                 top position, cursor wraps to the bottom.
  35.      DN ARROW   Moves the cursor the opposite direction of UP ARROW.
  36.  
  37.      * EDITING KEYS
  38.      Editing keys allow you to modify text.
  39.      BACKSPACE       Moves the cursor one position to the left, deleting the
  40.                      character in that position
  41.      DEL             Deletes the character at the cursor or selected text
  42.      INS             Toggles between insert and replace mode.
  43.      CTRL-LFT        Moves the cursor one word to the left
  44.      CTRL-RT         Moves the cursor one word to the right
  45.      SHIFT-RT        Starts or extends the selection one character position
  46.                      to the right
  47.      SHIFT-LFT       Starts or extends the selection one character position
  48.                      to the left
  49.      SHIFT-UP        Starts or extends the selection up one line
  50.      SHIFT-END       Selects all characters to the end of the line
  51.      SHIFT-HOME      Selects all characters to the beginning of the line
  52.      CTRL-SHIFT-RT   Starts or extends the selection one word right
  53.      CTRL-SHIFT-LFT  Starts or extends the selection one word left
  54.      SHIFT-DEL       Delete selected text and copy to buffer
  55.      CTRL-INS        Copy selected text and copy to buffer
  56.      SHIFT-INS       Paste text from buffer
  57.  
  58.  
  59.  
  60.    * HOT KEYS
  61.      CTRL-A    Recalculate calculated fields in current record
  62.      CTRL-B    Blank from cursor to end of field
  63.      CTRL-C    Display the calculator
  64.      CTRL-D    Drop to DOS
  65.      CTRL-E    Activate memo field editor
  66.      CTRL-F    Duplicate field from previously-viewed record
  67.      CTRL-H    Insert mode on
  68.      CTRL-I    Switch to next index
  69.      CTRL-J    Dial phone number (jingle)
  70.      CTRL-L    Print snapshot label
  71.      CTRL-M    Display macro menu to invoke macro
  72.      CTRL-N    Display next record
  73.      CTRL-O    Flip data
  74.      CTRL-P    Display previous record
  75.      CTRL-R    Duplicate previously-viewed or added record
  76.      CTRL-S    Continue search
  77.      CTRL-T    Toggle between Table view and Record view
  78.      CTRL-U    Undo changes for entire record
  79.      CTRL-V    View memo field
  80.      CTRL-X    Toggle index locking
  81.      CTRL-Y    Begin and end recording macro
  82.      ALT-O     Chooses OK in dialog boxes and windows
  83.      ALT-C     Chooses Cancel in dialog boxes and windows
  84.      ALT-F1    Brings up this general help screen
  85.      ALT-F7    Use with arrow keys to move boxes and windows
  86.      ALT-F8    Use with arrow keys to resize memo window
  87.      ALT-F10   Maximize memo window
  88.      ALT-BKSP  Undo most recent change for current field
  89.  
  90.  
  91.      DEFINING THE DATABASE
  92.  
  93.      Edit mask examples:
  94.  
  95.      :azAZ:                  allows only alphabetic characters
  96.      :AAaaEEeeIIiiOOooUUuu:  allows only vowels
  97.      :09//--  :              good for date fields
  98.  
  99.      Automatic Fields (In edit mask area)
  100.  
  101.      :DATE*:                 mm-dd-yy
  102.      :MM/DD/YY*:             mm/dd/yy
  103.      :YYMMDD*:               yymmdd
  104.      :YYYYMMDD*:             yyyymmdd
  105.      :MO*:                   mm
  106.      :DY*:                   dd
  107.      :YR*:                   yy
  108.      :TIME*:                 hh:mm
  109.      :DD/MM/YY*:             dd/mm/yy
  110.      :UNIQUE*:*A             unique no.
  111.      :DUPE*:                 auto dupe
  112.  
  113.  
  114.      Automatic field can also have an input edit mask:
  115.           :DATE*09//:
  116.      Automatic field only when adding records:
  117.           :DATE*:*A
  118.      Automatic field only when modifying:
  119.           :DATE*:*M
  120.      Automatic field only when blank:
  121.           :DATE*:*B
  122.      Automatic Constant
  123.           "New York City"
  124.           "Des Moines"*A           (only when adding records)
  125.           "Milton Freewater"*M     (only when modifying)
  126.           "Completed"*B            (only when blank)
  127.      Calculated fields example:
  128.           ((cost + adjustments) / 100)
  129.      Relational lookup example:
  130.           (@empno,empmast,empnumber,salary)*B
  131.  
  132.      TYPES OF SIMPLE SEARCHES
  133.  
  134.      xxx            generic (exact match based on position in field)
  135.      ~xxx           scan across
  136.      ?xxx           sounds-like
  137.      ___x           wildcard (cannot be used in numeric fields)
  138.      >xxx           comparison operator (can use >,<,>=,<=, and !)
  139.  
  140.      WHEN CALCULATIONS ARE ASKED FOR:
  141.  
  142.      arithmetic operators:
  143.           +    addition
  144.           -    subtraction or negation
  145.           *    multiplication
  146.           /    division
  147.           %    modulo (remainder)
  148.           ^    exponentiation
  149.  
  150.      logical operators:
  151.           &    and
  152.           |    or
  153.  
  154.      comparison operators:
  155.           =    equal
  156.           !=   not equal
  157.           >    greater than
  158.           >=   greater than or equal
  159.           <    less than
  160.           <=   less than or equal
  161.  
  162.  
  163.      string operators:
  164.           UPCASE(argument)     converts "argument" to uppercase
  165.           LOWCASE(argument)    converts "argument" to lowercase
  166.           MIXCASE(argument)    converts "argument" to leading uppercase,
  167.                                following lowercase
  168.           LASTWORD(argument)   isolates last word in "argument"
  169.           FIRSTWORD(argument)  isolates first word in "argument"
  170.           TRIM(argument)       trims all trailing spaces from "argument"
  171.           argument;argument    (semicolon) concatenates (joins) strings
  172.      "Argument" can be a field name, a string of characters surrounded by
  173.      quotes ("xxx"), or a nested string calculation.
  174.  
  175.      special calculations:
  176.       (@RANDOM#)     creates a random number between 0 and 1
  177.       (@TODAY#)      creates todays relative "day number"
  178.       (@DAY#,mask)   get date from stack, convert to day#
  179.                      mask tells date format:
  180.                      ymd  ydm  mdy  myd  dmy  dym  yymmdd
  181.       (@DATE,mask)   get day# from stack, convert to date
  182.                      mask tells date format: examples  mdy/   dmy-
  183.       (@key1,dbase2,key2,answer2)
  184.                      a relational lookup
  185.       (@*,answer3)   a subsequent relational lookup into same record
  186.  
  187.      example arithmetic calculation:
  188.           ((cost + adjust) / 100)
  189.      example comparison calculation:
  190.           ((age >= 21 & age < 40) & sex = "F")
  191.      example string calculation: trim firstname and concatenate lastname
  192.           (TRIM(firstname);" ";lastname)
  193.      example date arithmetic: difference between 2 dates
  194.           (date2(@DAY#,mdy) - date1(@DAY#,mdy))
  195.      example date arithmetic: date 60 days later
  196.           ((date1(@DAY#,mdy) + 60)(@DATE,mdy/))
  197.  
  198.      COMMANDS WITHIN MACROS
  199.  
  200.      Key                Macro definition     Key combinations
  201.  
  202.      ENTER              {ENTER}              With ALT       {ALT-F}
  203.      ESC                {ESC}                With CTRL      {CTRL-D}
  204.      BACKSPACE          {BKSP}               With SHIFT     {SHIFT-TAB}
  205.      DELETE             {DEL}
  206.      INSERT(toggle)     {INS}                All other keys are entered as
  207.      INSERT(force)      {INSERT_ON}          typed from the keyboard without
  208.      DOWN ARROW         {DOWN}               surrounding braces {}.
  209.      UP ARROW           {UP}
  210.      RIGHT ARROW        {RIGHT}
  211.      LEFT ARROW         {LEFT}
  212.      HOME               {HOME}
  213.      END                {END}
  214.      Function key       {Fn} (n = function key number)
  215.      PAGE UP            {PGUP}
  216.      PAGE DOWN          {PGDN}
  217.      TAB                {TAB}
  218.  
  219.  
  220.      REPORT COMMAND LANGUAGE
  221.  
  222.      The sections of the report
  223.  
  224.      :COVER              once at beginning of report
  225.      :HEADING            top of each page
  226.      :DETAIL             once for each record printed
  227.      :SUBTOTAL           at each subtotal break
  228.      :FOOTING            bottom of each page
  229.      :TOTAL              at end of the report
  230.  
  231.      Commands in filename.rep (1 command per line):
  232.  
  233.      [xxx]               field xxx data prints here
  234.      [COUNT*]            print count of records printed so far
  235.      [DATE*]             today's date prints here
  236.      [KEYIN*prompt]      ask operator input, print here
  237.      [PAGE*]             print page number here
  238.      [RECORDS*]          print no. of records in database
  239.      [SELECT*]           print the selection criteria
  240.      [SORT*]             print the primary sort field name
  241.      [SUBCMD*n]          print subtotal trigger formula (n = sublevel)
  242.      [SUBCOUNT*n]        print count of records in subtotal group (n= sublevel)
  243.      [SUBFLD*n]          print field name of subtotal break field (n = sublevel)
  244.      [SUBID*n]           print data from subtotal break field (n = sublevel)
  245.      [SUBLEVEL*]         print level number of subtotal break
  246.      [TIME*]             the current time prints here
  247.      A nn,nnn,nn         print ASCII printer control codes here
  248.      <xxx>               field xxx data (excess spaces removed)
  249.      "xxx"               a constant
  250.      =nn                 tab to column nn
  251.      /n                  insert n newlines
  252.      .FF                 form feed to new page
  253.      .CP nn              conditional skip to new page
  254.      .IF (condition)     if condition is true, include following commands
  255.      .ELSE               if condition is not true, include following
  256.      .ENDIF              end of IF construct
  257.      .GROUP              start a group (no blank lines)
  258.      .EGROUP             end a group
  259.      .EGROUP R           end a group, replace blank lines
  260.      .REFORMAT
  261.      .ENDREFORMAT
  262.      (a+b):z,zz#.##:     a calculated answer, with output mask
  263.      (@K1,DB,k2,x2):@@@: a relational lookup
  264.      (@*,fld):@@@@:      a relational lookup into the same record
  265.  
  266.      Report Print Masks (examples)
  267.  
  268.      :@@@@@@@@@@@@:      a character field mask
  269.      :#####:             numbers, all digits appear
  270.      :zz,zz#.##:         zero suppress, with commas
  271.      :$$$$$$.##:         floating dollar sign
  272.      :******.##:         asterisk check protection
  273.      :Wnn:               word wrap mask (nn = number of characters wide)
  274.      ::                  null mask (nothing prints)
  275.  
  276.  
  277.      MAIL-MERGE COMMANDS  (IMBED IN LETTER)
  278.  
  279.      .<fieldname>        insert data, blanks stripped
  280.      .[fieldname]        insert data, no blanks removed
  281.      .<KEYIN*prompt>     insert data from keyboard
  282.      .<DATE*>            insert today's date
  283.      .GROUP              start a group (no blank lines)
  284.      .EGROUP             end a group
  285.      .EGROUP R           end a group, replace blank lines
  286.      .FORMFEED           skip to new page on printer
  287.      .FF                 skip to new page on printer
  288.      .CP nn              conditional skip to new page
  289.      .REFORMAT           begin reformat
  290.      .ENDREFORMAT        end reformat
  291.      .IF (condition)     if condition is true, include following
  292.      .ELSE               if condition not true, include following (optional)
  293.      .ENDIF              end of IF/ELSE construct
  294.      .<(a+b):z,zz#.##:>  a calculated answer
  295.      .<(@K1,DB2,k2,x2):@@@@@@:> a relational lookup answer
  296.  
  297.      COMMANDS IN PROFILE FILES OR ON COMMAND LINE
  298.  
  299.      /ADDPW,xxx       password allowing additions to database
  300.      /BOLD,n          define printer codes for boldface type
  301.      /CASEFIND        searches will be case sensitive
  302.      /CASESORT        sorts will be case sensitive
  303.      /CHARMODE        set character display mode
  304.      /COLOR,n         set color pallet
  305.      /CONDENSED,n     define printer codes for condensed type
  306.      /DELPW,xxx       password allowing deletions in database
  307.      /DRIVE,x         default disk for data
  308.      /EURODATE        use European date format in reports and date fields
  309.      /FILE,xxx        default database name
  310.      /LANDSCAPE,n     define printer codes for landscape page orientation
  311.      /MEMOW,n         the width of the Memo window
  312.      /MODPW,xxx       password allowing modify in database
  313.      /NOEMS           prevents use of extended memory (in case of conflict)
  314.      /NOXMS           prevents use of expanded memory (in case of conflict)
  315.      /NORMAL,n,n      ASCII values to cause normal print size
  316.      /NOSNOW          prevents snow or flickering on some CGA monitors
  317.      /PAGELEN,n       size of page (no. of print lines)
  318.      /PATH,xxx        default subdirectory for data
  319.      /PHINIT,xxxx     modem initialization string
  320.      /PHLONG,n        define long distance code
  321.      /PHPORT,COMx     the COM port to Jingle phone calls thru
  322.      /PHPRE,xxx       telephone "connect" command characters
  323.      /POSTSCRIPT      defines for PostScript output
  324.      /PRINTER,xxx     defines printer output, where "xxx" is printer name
  325.      /PRINTPW,x       define password for access to Print menu
  326.      /PROPORTIONAL,n  define printer codes for proportional type
  327.      /PRPORT,LPTx     printer output port
  328.      /READONLY        open database in read-only mode (must be in database.PRO)
  329.      /SNAP1,n         define first snapshot label report
  330.      /SNAP2,n         define second snapshot label report
  331.      /SNAP3,n         define third snapshot label report
  332.      /SNAP4,n         define fourth snapshot label report
  333.      /SNAP5,n         define fifth snapshot label report
  334.  
  335.      /SYSPW,xxx       password allows system operations
  336.      /UNDERLINE,n     define print codes for underlined type
  337.      /USEPW,xxx       password allows use of the database
  338.      /USER1,n         user-defined printer code 1
  339.      /USER2,n         user-defined printer code 2
  340.      /USER3,n         user-defined printer code 3
  341.      /USER4,n         user-defined printer code 4
  342.      /USER5,n         user-defined printer code 5
  343.      /VIEW,x          default view (Record or Table)
  344.  
  345.      COMMANDS FOR FORMULA INDEXES
  346.  
  347.      ABS(num)              DAY(date)             ISDIGIT(char)
  348.      ASC(char)             DESCEND(char)         ISLOWER(char)
  349.      AT(str,str)           DOW(date)             ISUPPER(char)
  350.      CALC("(pcfilecalc)")  DTOC(date)            LEFT(char,len)
  351.      CDOW(date)            EXP(num)              LEN(char)
  352.      CHR(num)              IIF(cond,expr,expr)   LOWER(char)
  353.      CMONTH(date)          INT(num)              LTRIM(char)
  354.      CTOD(char)            ISALPHA(char)         MAX(num,num)
  355.      DATE()                RIGHT(char,num)       STUFF(char,num,num,char)
  356.      MIN(num,num)          ROMAN(char)           SUBSTR(char,num,num)
  357.      MOD(num,num)          ROUND(num,num)        TIME()
  358.      MONTH(date)           RTRIM(char)           TRIM(char)
  359.      RECCOUNT()            SOUNDEX(char)         TYPE(any)
  360.      RECNO()               SPACE(num)            UPPER(char)
  361.      RECSIZE()             STR(num,num,num)      VAL(char)
  362.      REPLICATE(char,num)   TOSTR(any)            YEAR(date)
  363.  
  364.