home *** CD-ROM | disk | FTP | other *** search
-
- PC-FILE 6.5 QUICK REFERENCE CARD
-
- * NAVIGATION KEYS
- Navigation keys allow you to move around the screen.
- ENTER Activates the current entry; move to the next step
- F10 Same as OK button, only in Simple Search and Edit.
- ESC Cancels the current operation; move back one step.
- ALT Toggles (switches) between the work area and the menu bar.
- If you hold down ALT and press the first letter of a menu
- bar option, the pull-down menu displays.
- HOME Moves the cursor to the leftmost position or choice.
- END Moves the cursor to the rightmost position or choice.
- CTRL-HOME Moves the cursor to the top-leftmost position in a memo
- field or edit window
- CTRL-END Moves the cursor to the bottom-rightmost position in a
- memo field or edit window
- PGUP Scrolls the currently visible window area up one screen.
- PGDN Scrolls the currently visible window area down one screen.
- CTRL-PGUP When viewing records, moves to the first field.
- CTRL-PGDN When viewing records, moves to the last field
- TAB Moves the cursor to the next field, button, or option.
- The cursor moves from left to right and top to bottom.
- At the bottom-rightmost position, the cursor moves to
- the top-leftmost position.
- SHIFT-TAB Moves the cursor the opposite direction of TAB.
- LFT ARROW Moves the cursor one position to the left. Within a
- field, moves one character to the left; on the menu bar
- or in a dialog box, moves one option, field, or button
- to the left. At the leftmost position, cursor wraps
- around to the rightmost position.
- RT ARROW Moves the cursor the opposite direction of LFT ARROW.
- UP ARROW Moves cursor up one position, field, or option. At the
- top position, cursor wraps to the bottom.
- DN ARROW Moves the cursor the opposite direction of UP ARROW.
-
- * EDITING KEYS
- Editing keys allow you to modify text.
- BACKSPACE Moves the cursor one position to the left, deleting the
- character in that position
- DEL Deletes the character at the cursor or selected text
- INS Toggles between insert and replace mode.
- CTRL-LFT Moves the cursor one word to the left
- CTRL-RT Moves the cursor one word to the right
- SHIFT-RT Starts or extends the selection one character position
- to the right
- SHIFT-LFT Starts or extends the selection one character position
- to the left
- SHIFT-UP Starts or extends the selection up one line
- SHIFT-END Selects all characters to the end of the line
- SHIFT-HOME Selects all characters to the beginning of the line
- CTRL-SHIFT-RT Starts or extends the selection one word right
- CTRL-SHIFT-LFT Starts or extends the selection one word left
- SHIFT-DEL Delete selected text and copy to buffer
- CTRL-INS Copy selected text and copy to buffer
- SHIFT-INS Paste text from buffer
-
-
-
- * HOT KEYS
- CTRL-A Recalculate calculated fields in current record
- CTRL-B Blank from cursor to end of field
- CTRL-C Display the calculator
- CTRL-D Drop to DOS
- CTRL-E Activate memo field editor
- CTRL-F Duplicate field from previously-viewed record
- CTRL-H Insert mode on
- CTRL-I Switch to next index
- CTRL-J Dial phone number (jingle)
- CTRL-L Print snapshot label
- CTRL-M Display macro menu to invoke macro
- CTRL-N Display next record
- CTRL-O Flip data
- CTRL-P Display previous record
- CTRL-R Duplicate previously-viewed or added record
- CTRL-S Continue search
- CTRL-T Toggle between Table view and Record view
- CTRL-U Undo changes for entire record
- CTRL-V View memo field
- CTRL-X Toggle index locking
- CTRL-Y Begin and end recording macro
- ALT-O Chooses OK in dialog boxes and windows
- ALT-C Chooses Cancel in dialog boxes and windows
- ALT-F1 Brings up this general help screen
- ALT-F7 Use with arrow keys to move boxes and windows
- ALT-F8 Use with arrow keys to resize memo window
- ALT-F10 Maximize memo window
- ALT-BKSP Undo most recent change for current field
-
-
- DEFINING THE DATABASE
-
- 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
- :MM/DD/YY*: mm/dd/yy
- :YYMMDD*: yymmdd
- :YYYYMMDD*: yyyymmdd
- :MO*: mm
- :DY*: dd
- :YR*: yy
- :TIME*: hh:mm
- :DD/MM/YY*: dd/mm/yy
- :UNIQUE*:*A unique no.
- :DUPE*: auto dupe
-
-
- 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 field only when blank:
- :DATE*:*B
- Automatic Constant
- "New York City"
- "Des Moines"*A (only when adding records)
- "Milton Freewater"*M (only when modifying)
- "Completed"*B (only when blank)
- Calculated fields example:
- ((cost + adjustments) / 100)
- Relational lookup example:
- (@empno,empmast,empnumber,salary)*B
-
- TYPES OF SIMPLE SEARCHES
-
- xxx generic (exact match based on position in field)
- ~xxx scan across
- ?xxx sounds-like
- ___x wildcard (cannot be used in numeric fields)
- >xxx comparison operator (can use >,<,>=,<=, and !)
-
- 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
-
-
- string operators:
- UPCASE(argument) converts "argument" to uppercase
- LOWCASE(argument) converts "argument" to lowercase
- MIXCASE(argument) converts "argument" to leading uppercase,
- following lowercase
- LASTWORD(argument) isolates last word in "argument"
- FIRSTWORD(argument) isolates first word in "argument"
- TRIM(argument) trims all trailing spaces from "argument"
- argument;argument (semicolon) concatenates (joins) strings
- "Argument" can be a field name, a string of characters surrounded by
- quotes ("xxx"), or a nested string calculation.
-
- special calculations:
- (@RANDOM#) creates a random number between 0 and 1
- (@TODAY#) creates todays relative "day number"
- (@DAY#,mask) get date from stack, convert to day#
- mask tells date format:
- ymd ydm mdy myd dmy dym yymmdd
- (@DATE,mask) get day# from stack, convert to date
- mask tells date format: examples mdy/ dmy-
- (@key1,dbase2,key2,answer2)
- a relational lookup
- (@*,answer3) a subsequent relational lookup into same record
-
- example arithmetic calculation:
- ((cost + adjust) / 100)
- example comparison calculation:
- ((age >= 21 & age < 40) & sex = "F")
- example string calculation: trim firstname and concatenate lastname
- (TRIM(firstname);" ";lastname)
- example date arithmetic: difference between 2 dates
- (date2(@DAY#,mdy) - date1(@DAY#,mdy))
- example date arithmetic: date 60 days later
- ((date1(@DAY#,mdy) + 60)(@DATE,mdy/))
-
- COMMANDS WITHIN MACROS
-
- Key Macro definition Key combinations
-
- ENTER {ENTER} With ALT {ALT-F}
- ESC {ESC} With CTRL {CTRL-D}
- BACKSPACE {BKSP} With SHIFT {SHIFT-TAB}
- DELETE {DEL}
- INSERT(toggle) {INS} All other keys are entered as
- INSERT(force) {INSERT_ON} typed from the keyboard without
- DOWN ARROW {DOWN} surrounding braces {}.
- UP ARROW {UP}
- RIGHT ARROW {RIGHT}
- LEFT ARROW {LEFT}
- HOME {HOME}
- END {END}
- Function key {Fn} (n = function key number)
- PAGE UP {PGUP}
- PAGE DOWN {PGDN}
- TAB {TAB}
-
-
- 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 filename.rep (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
- [RECORDS*] print no. of records in database
- [SELECT*] print the selection criteria
- [SORT*] print the primary sort field name
- [SUBCMD*n] print subtotal trigger formula (n = sublevel)
- [SUBCOUNT*n] print count of records in subtotal group (n= sublevel)
- [SUBFLD*n] print field name of subtotal break field (n = sublevel)
- [SUBID*n] print data from subtotal break field (n = sublevel)
- [SUBLEVEL*] print level number of subtotal break
- [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
- .IF (condition) if condition is true, include following commands
- .ELSE if condition is not true, include following
- .ENDIF end of IF construct
- .GROUP start a group (no blank lines)
- .EGROUP end a group
- .EGROUP R end a group, replace blank lines
- .REFORMAT
- .ENDREFORMAT
- (a+b):z,zz#.##: a calculated answer, with output mask
- (@K1,DB,k2,x2):@@@: a relational lookup
- (@*,fld):@@@@: a relational lookup into the same record
-
- Report Print Masks (examples)
-
- :@@@@@@@@@@@@: a character field mask
- :#####: numbers, all digits appear
- :zz,zz#.##: zero suppress, with commas
- :$$$$$$.##: floating dollar sign
- :******.##: asterisk check protection
- :Wnn: word wrap mask (nn = number of characters wide)
- :: null mask (nothing prints)
-
-
- 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
- .REFORMAT begin reformat
- .ENDREFORMAT end reformat
- .IF (condition) if condition is true, include following
- .ELSE if condition not true, include following (optional)
- .ENDIF end of IF/ELSE construct
- .<(a+b):z,zz#.##:> a calculated answer
- .<(@K1,DB2,k2,x2):@@@@@@:> a relational lookup answer
-
- COMMANDS IN PROFILE FILES OR ON COMMAND LINE
-
- /ADDPW,xxx password allowing additions to database
- /BOLD,n define printer codes for boldface type
- /CASEFIND searches will be case sensitive
- /CASESORT sorts will be case sensitive
- /CHARMODE set character display mode
- /COLOR,n set color pallet
- /CONDENSED,n define printer codes for condensed type
- /DELPW,xxx password allowing deletions in database
- /DRIVE,x default disk for data
- /EURODATE use European date format in reports and date fields
- /FILE,xxx default database name
- /LANDSCAPE,n define printer codes for landscape page orientation
- /MEMOW,n the width of the Memo window
- /MODPW,xxx password allowing modify in database
- /NOEMS prevents use of extended memory (in case of conflict)
- /NOXMS prevents use of expanded memory (in case of conflict)
- /NORMAL,n,n ASCII values to cause normal print size
- /NOSNOW prevents snow or flickering on some CGA monitors
- /PAGELEN,n size of page (no. of print lines)
- /PATH,xxx default subdirectory for data
- /PHINIT,xxxx modem initialization string
- /PHLONG,n define long distance code
- /PHPORT,COMx the COM port to Jingle phone calls thru
- /PHPRE,xxx telephone "connect" command characters
- /POSTSCRIPT defines for PostScript output
- /PRINTER,xxx defines printer output, where "xxx" is printer name
- /PRINTPW,x define password for access to Print menu
- /PROPORTIONAL,n define printer codes for proportional type
- /PRPORT,LPTx printer output port
- /READONLY open database in read-only mode (must be in database.PRO)
- /SNAP1,n define first snapshot label report
- /SNAP2,n define second snapshot label report
- /SNAP3,n define third snapshot label report
- /SNAP4,n define fourth snapshot label report
- /SNAP5,n define fifth snapshot label report
-
- /SYSPW,xxx password allows system operations
- /UNDERLINE,n define print codes for underlined type
- /USEPW,xxx password allows use of the database
- /USER1,n user-defined printer code 1
- /USER2,n user-defined printer code 2
- /USER3,n user-defined printer code 3
- /USER4,n user-defined printer code 4
- /USER5,n user-defined printer code 5
- /VIEW,x default view (Record or Table)
-
- COMMANDS FOR FORMULA INDEXES
-
- ABS(num) DAY(date) ISDIGIT(char)
- ASC(char) DESCEND(char) ISLOWER(char)
- AT(str,str) DOW(date) ISUPPER(char)
- CALC("(pcfilecalc)") DTOC(date) LEFT(char,len)
- CDOW(date) EXP(num) LEN(char)
- CHR(num) IIF(cond,expr,expr) LOWER(char)
- CMONTH(date) INT(num) LTRIM(char)
- CTOD(char) ISALPHA(char) MAX(num,num)
- DATE() RIGHT(char,num) STUFF(char,num,num,char)
- MIN(num,num) ROMAN(char) SUBSTR(char,num,num)
- MOD(num,num) ROUND(num,num) TIME()
- MONTH(date) RTRIM(char) TRIM(char)
- RECCOUNT() SOUNDEX(char) TYPE(any)
- RECNO() SPACE(num) UPPER(char)
- RECSIZE() STR(num,num,num) VAL(char)
- REPLICATE(char,num) TOSTR(any) YEAR(date)
-
-