home *** CD-ROM | disk | FTP | other *** search
-
-
- +---------------------------------+
- | PC-FILE+ QUICK REFERENCE CARD |
- +---------------------------------+
-
-
- SPECIAL KEYS WHEN TYPING
-
- KEY FUNCTION
- ─────── ─────────────────────────────────────────────
- (Alt)C Calculator hot-key
- (Alt)D drop to DOS
- (Alt)H HELP
- (Alt)M load new Macro smart keys
- (Alt)P Print screen (cleaned up)
- (Alt)T TEACH mode (on/off)
- (Alt)Y Smart key memorize (on/off)
- (Ctrl)A accept data (same as (F10))
- (Ctrl)B blank right, to end of field
- (Ctrl)D duplicate all of previous record
- (Ctrl)F duplicate Field from previous record
- (Ctrl)L print a Label (Snapshot)
- (Ctrl)P Print screen (cleaned up)
- (Ctrl)R read into memory
- (Ctrl)W write from memory
- (Del) delete the character at the cursor
- down arrow move cursor to following field or line
- (End) cursor right, past last significant character
- (Enter) move cursor to next field
- (Esc) cancel this operation
- (F10) accept data
- (Home) cursor left, to start of field
- (Ins) Insert mode (on/off)
- left arrow move cursor left 1 position
- (PgDn) cursor to last input field on screen, or
- page down (in browse mode)
- (PgUp) cursor to first input field on screen, or
- page up (in browse mode)
- right arrow move cursor right 1 position
- tab move cursor to next field, or
- move browse window one field to the right
- tab left move cursor to prior field, or
- move browse window one field to the left
- tilde (~) the "flip data" character
- up arrow move cursor to preceding field or line
-
- DEFINING THE DATA BASE
- Special Characters
- # At the end of the field name creates a numeric
- field. Example: QTY#
- Edit mask examples:
- :azAZ: allows only alphabetic characters
- :AAaaEEeeIIiiOOooUUuu: allows only vowels
- :09//-- : good for date fields
- Automatic Fields (In edit mask area)
- :DATE*: mm-dd-yy :TIME*: hh:mm
- :MM/DD/YY*: mm/dd/yy :UNIQUE*: unique no.
- :DD/MM/YY*: dd/mm/yy :DUPE*: auto dupe
- :YYMMDD*: yymmdd
- :MO*: mm
- :DY*: dd
- :YR*: yy
- Automatic field can also have an input edit mask:
- :DATE*09//:
- Automatic field only when adding records:
- :DATE*A:
- Automatic field only when modifying:
- :DATE*M:
- Automatic Constant
- "New York City"
- "Des Moines"*A (only when adding records)
- "Milton Freewater"*M (only when modifying)
- Calculated fields example:
- ((cost + adjustments) / 100).2
- Relational lookup example:
- (@empno,empmast,empno,salary)
-
- FIND: TYPES OF SEARCHES
- xxx generic (exact, first part)
- ~xxx scan across
- ?xxx sounds-like
- ___x wildcard
-
-
- WHEN CALCULATIONS ARE ASKED FOR:
- arithmetic operators:
- + addition
- - subtraction or negation
- * multiplication
- / division
- % modulo (remainder)
- ^ exponentiation
- logical operators:
- & and
- | or
- comparison operators:
- = equal
- != not equal
- > greater than
- >= greater than or equal
- < less than
- <= less than or equal
- special calculations:
- (@RANDOM#) creates a random number between 0 and 1
- (@TODAY#) creates todays "day number" relative to 1/1/1901
- (@DAY#,mask) gets date from stack, converts to day-number.
- mask tells date format:
- ymd ydm mdy myd dmy dym yymmdd
- (@DATE,mask) gets day-number from stack, converts to date.
- mask tells date format: examples mdy/ dmy-
- (@key1,DBASE2,key2,ANSWER2)
- a relational lookup
- example arithmetic calculation:
- ((cost + adjust) / 100)
- example comparison calculation:
- ((age >= 21 & age < 40) & sex = "F")
- example date arithmetic: differnece btwn 2 dates
- (date2(@DAY#,mdy) - (date1(@DAY#,mdy))
- example date arithmetic: date 60 days later
- ((date1(@DAY#,mdy) + 60)(@DATE,mdy/))
-
- COMMANDS WITHIN SMART KEY DATA
- [2] simulate "blank to right" key
- [4] simulate "dupe record" key
- [6] simulate "dupe field" key
- [9] simulate tab-rt key
- [12] simulate "Snapshot Label" key
- [13] simulate (Enter) key
- [18] simulate "read into memory" key
- [23] simulate "write from memory" key
- [271] simulate tab-left key
- [324] simulate (F10) key
- [328] simulate cursor up key
- [335] simulate End key
- [336] simulate cursor down key
- [338] simulate Ins key
- [339] simulate Del key
- ^n imbed smart key #n
- ^K get keyboard input
-
- REPORT COMMAND LANGUAGE
- The sections of the report
- :COVER once at beginning of report
- :HEADING top of each page
- :DETAIL once for each record printed
- :SUBTOTAL at each subtotal break
- :FOOTING bottom of each page
- :TOTAL at end of the report
- Commands in print control file (1 command per line):
- [xxx] field xxx data prints here
- [COUNT*] print count of records printed so far
- [DATE*] today's date prints here
- [KEYIN*prompt] ask operator input, print here
- [PAGE*] print page number here
- [RECORD*] print record no. of the current record
- [RECORDS*] print no. of rcds in database
- [SELECT*] print the selection criteria
- [SORT*] print the primary sort field name
- [SUBCOUNT*] print count of rcds in subtotal group
- [SUBFLD*] print field name of subtotal break fld
- [SUBID*] print data from subtotal break field
- [TIME*] the current time prints here
- A nn,nnn,nn print ASCII printer control codes here
- <xxx> field xxx data (excess spaces removed)
- "xxx" a constant
- =nn tab to column nn
- /n insert n newlines
- .FF form feed to new page
- .CP nn conditional skip to new page
- (a+b):z,zz#.##: a calculated answer
- (#):zz,zz#: relative record number
- (@K1,DB,k2,x2):@@@: relational lookup
- Output Edit Masks (examples)
- :@@@@@@@@@@@@@: character field mask
- :#####: numbers, all digits appear
- :zz,zz#.##: zero suppress, with commas
- :$$$$$$.##: floating dollar sign
- :******.##: asterisk check protection
- :=,12,0,100,* : barchart mask
-
- MAIL-MERGE COMMANDS (IMBED IN LETTER)
- .<fieldname> insert data, blanks stripped
- .[fieldname] insert data, no blanks removed
- .<KEYIN*prompt> insert data from keyboard
- .<DATE*> insert today's date
- .GROUP start a group (no blank lines)
- .EGROUP end a group
- .EGROUP R end a group, replace blank lines
- .FORMFEED skip to new page on printer
- .FF skip to new page on printer
- .CP nn conditional skip to new page
- .<(a+b):z,zz#.##:> a calculated answer
- .<(@K1,DB2,k2,x2):@@@:> a relational lookup answer
-
- SORT ALTERNATIVES (SORT FIELD #n)
- fieldname sort on entire field
- fieldname,1,2 data starts in byte=1, length=2
- fieldname,R Roman Numeral sort
- fieldname,S sounds-like sort
- (@RANDOM#) random sequence
- (fieldname(@DAY#,mdy))
- sort on field that's in mo/dy/yr format
-
- COMMANDS IN PROFILE FILES
- /ADDPW,xxx password allowing additions to database
- /AUTOSKIP automatic skip to next field when full
- /BG,n set background screen color 0-7 (note 1)
- /CASEFIND searches will be case sensitive
- /CASESORT sorts will be case sensitive
- /CONDENSED,n,n ASCII values to cause condensed print
- /DELPW,xxx password allowing deletions in database
- /DRIVE,x default disk for data
- /EXPERT smaller menu prompts where possible
- /FASTVIEW fastest screen writes (possible snow)
- /FASTWRITE speedy (less cautious) disk access
- /FG,n set foreground screen color 0-15 (note 1)
- /FG2,n set alternate color (field names, highlight)
- /FILE,xxx default database name
- /IXBUFSIZE,n buffer size for index: 0 - 65535;
- /KEYIN,xxx keystrokes to run at startup
- /LBL,xxx gives Snapshot Label format (note 2)
- /MODPW,xxx password allowing modify in database
- /NORMAL,n,n ASCII values to cause normal print size
- /NOTRAP don't trap disk errors and (Ctrl)break
- /PAGELEN,n size of page (no. of print lines)
- /PATH,xxx default subdirectory for data
- /PRPORT,LPTx: printer output port
- /SORTPW,xxx password allows sorts on database
- /SYSPW,xxx password allows system operations
- /USEPW,xxx password allows use of the database
- /XXXPW,xxx password allows override of all passwords
-
- Note 1.
- Screen colors: bg 0-7, fg 0-15
- 0 black 4 red 8 gray 12 lt. red
- 1 blue 5 magenta 9 lt. blue 13 lt. magenta
- 2 green 6 brown 10 lt. green 14 yellow
- 3 cyan 7 white 11 lt. cyan 15 bright white
-
- Note 2.
- Snapshot Feature specification:
- dev,t,f,f,f,f......
- dev = LPT1:, LPT2:, MYFILE, etc.
- t = no. chars to tab in at left margin
- f = field number, or command
- 0 = new line
- -n = insert n spaces
- 'xx' = insert xx (a constant)
-