home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
genapps
/
rquery3.arj
/
RQUERY3.DOC
< prev
next >
Wrap
Text File
|
1992-01-20
|
21KB
|
479 lines
RQUERY3 1
version 1.25
Copyright (C) Jerry A. Horton, 1991, 1992
P.O. Box 274
Whitfield, MS 39193
FAX: 601-939-0654
Phone#: 601-939-1221, Ext# 371
or
Phone#: 601-856-0604, After hours
REVISED: 1/17/1992
RBase 3.xx Version!!
The program allows the user to use either existing reports of a database or
to create custom reports. RQUERY3 allows you to choose the table to work
with, the columns to use in any order, the method of sorting, and set a
condition to each Query! Rquery3 can work with both tables and views.
Rquery also allows the use of the database's existing reports but allows
the user to create NEW conditions and sorts. Rquery3 also does various
custom calculations, and provides access to a password protected simulated
R> prompt if the developer allows it. If called from within another Rbase
application, the main screen also provides access to selecting the default
printer driver to use for the current application session. Only those
printer drivers that are in the directory containing Rbase are available.
To be safe all PRD files should be made available to the user.
REQUIREMENTS: Rbase 3.xx Runtime, or Rbase 3.xx, or Personal Rbase.
LEARNING TO USE RQUERY3 2
THE BEST WAY TO LEARN HOW TO USE RQUERY3 (OR ANY PRODUCT) IS TO USE IT.
This guide is not intended as a detailed manual. The program is basically
self explanatory. This stand alone program works only with databases
created by Microrim's Rbase.
To operate the program you must have all of the files listed below, except
this RQUERY.DOC and FORM.TXT, in the directory where the RBF files are
located.
When creating a custom reports, the program creates a temporary file
called "RQUERY.DAT" to store your query, then erases it. Therefore do not
have any other file by that name in the current directory.
LIST.COM - This is a utility by Vernon Buerg and is separately zipped.
RQUERY3.apx - Start up menu for the program.
RQCHOOSE.apx This is the main portion of the program.
RQVIEW.apx - Provides the viewing and printing options.
RQUERY3.DOC - Manual
FORM.TXT - Registration form.
On starting the program, you will see the following screen. 3
+--------------------+
|*** RQUERY3 1.25 ***|
+--------------------+
+--------- | RQUERY Main Screen - Choose Type of Report | --+
| Existing Report Create Custom Report Calculate |
| Work with Text Files Select Printer Option R> prompt |
| [DONE] |
+-----------------------------------------------------------+
WORK WITH TEXT FILES
Choosing this option causes the program to look in the current directory
for any files. [CTRL] [P] will print the entire file. [F1] will bring up
a help screen. [/] allows you to search for text, and [ESC] will exit. For
more details see next.
FUNCTION KEYS ALT- KEYS ALT- KEYS
F1 Display HELP a-A find text Again a-S Sharing on/off
F2 set FIND bg a-B mark Bottom line a-T Tabs on/off
F3 Find next text a-C Save options a-U Unmark lines
F4 set FIND fg a-D copy to file a-V file select menu
F5 set text bg a-E toggle EGA 25/43 a-W toggle windows
F6 set text fg a-F get new Filespec a-X exit, restore screen
F7 set 1/25 bg a-G Goto DOS a-Y recall bookmark
F8 set 1/25 fg a-H toggle Hex mode a-Z show toggles
F9 Find prev text a-I insert new file
F10 Exit to DOS a-J Junk filter 7/8/* hi-bit filters
/ Scan for exact text a-K toggle Key ahead +/-/# skip to line #
\ Find any case text a-L toggle preLoading 1 display first file
a-M Mark top line
P Printer on/off a-N screen saving
W Wrap long lines a-O append data value,
Q quit to next file a-P print marked amount,
X Exit to DOS, cls a-R Ruler on/off
CONTROL KEYS CURSOR KEYS 4
c-A scroll full left
c-C scroll down one page Home Top of file
c-D scroll right 10 End Bottom of file
c-E scroll up one line PgUp scroll up one page
c-F printer form feed PgDn scroll down one page
c-H hang-up telephone Left scroll left 10
c-I define TAB interval Right scroll right 10
c-L find text again Down scroll down one line
c-M scroll down one page Up scroll up one line
c-N display previous file
c-P print entire file c-Home position by line number
c-R scroll up one page c-PgUp display previous file
c-S scroll left 10 c-PgDn display next file
c-T dial telephone c-Left scroll full left
c-U display previous file c-Right scroll full right
c-V switch windows
c-W scroll up one line
c-X scroll down one line
c-Y set bookmark
c-Z display previous file
CREATE CUSTOM REPORT 5
Next, you will be given a list of all Rbase databases in the current
directory. Simply highlight the one you wish to use and press ENTER. The
program will prompt as to whether to use tables or views after you have
chosen the database to work with.
You will then be offered a list of all the existing tables or views in the
currently open database. Highlight your choice and press ENTER.
You will then be shown all of the columns in the chosen table or view.
You may choose to use all by pressing ESC or you may choose the ones you
wish in any order you like to view by highlighting each in turn, Press [F2]
when done.
You will then go to the SORT screen. Once again you will be shown all of
the columns in the current table or view. After choosing a sort column you
can then choose "Ascending" or Descending". When you have made all your
choices press [F2] to go on. Press [ESC] to have no sort.
+----------+
| OBJECT |
| BLDGLIST +--------------+
| DDIR | √ FirstName |
| DIV_DESC | √ LastName |
| R_INV | + MI +---------------+
| R_TRANS | √ Address1 | + FirstName |
| PO_TRANS | + Address2 |2 A LastName |
| ICREDIT | √ CITY | + MI |
| PO_REC | √ STATE | + Address1 |
| BLDGS | √ ZIPCODE | + Address2 |
| COSTCTR | + Title | + CITY |
| R_HOLD | √ Company | + STATE |
| PRINTERS | + Vendor# | + ZIPCODE |
| IHISTORY | + PhoneAC | + Title |
| ITEMTYPE | + PhoneExc |1 A Company |
| I_INV | + PhoneNum | + Vendor# |
| INV_TYPE | + PhoneExt | + PhoneAC |
| People | + CPhoneAC | + PhoneExc |
| PO | + CPhoneExc | + PhoneNum +------------+
+----------| + CPhoneNum | + PhoneExt | Ascending |
+--------------| + CPhoneAC | Descending |
+---------------+------------+
Ascending sort order
Database: INV TYPE: TEXT 6 Extension
You will now go to the conditions screen. Once again you will be able to
choose your conditions by highlighting your choice. When you press ENTER
you will be given a list of conditions to choose from (eg. EQ, GT,
CONTAINS, etc.) After choosing the condition you will be prompted, if
necessary for input to match the condition against. Press [F2] to end or
if you wish to select nothing just press [ESC]. After each choice you are
prompted to choose one of the following: AND, OR, AND NOT, OR NOT, (DONE).
Choose DONE when finished with your conditions.
Select Columns for Conditions (Press ESC For None) 6
_____________________________________________________________
+----------------------------------------------------------+
| | Column | Operator | Value |
|------+--------------------+-------------+----------------|
| | STATE | = | "MS" |
| OR | STATE +---------------------------+ |
| | | = EQUAL | |
| | | <> NOT EQUAL | |
| | | > GREATER THAN | |
| | | >= GREATER THAN OR EQUAL | |
| | | < LESS THAN | |
| | | <= LESS THAN OR EQUAL | |
| | | BETWEEN | |
+---------------------------| NOT BETWEEN |--+
+---------------------------
Choose an operator.
Database: INV
COMPARISONS 7
+--------Choose how columns and values are compared--------+
| Prompt By Example asks you to choose a comparison to be |
| used with the current column. The operators are defined |
| as: |
| |
| EQ Equal to |
| NE Not equal to |
| GT Greater than |
| GE Greater than or equal to |
| LT Less than |
| LE Less than or equal to |
| EXISTS Column contains data |
| CONTAINS contains "string" |
| IN Value of column exists in selected rows |
| NOT IN Value of column does not exist in |
| selected rows |
| FAILS Column is null |
| IS NULL Column is null |
| IS NOT NULL Column contains data |
| LIKE Column equals "string" |
| NOT LIKE Column not equal to "string" |
| BETWEEN Greater than or equal to value1 and |
| than or equal to value2 -- place quotes |
| around the values; connect them with AND |
| NOT BETWEEN Less than value1 or |
| greater than value2 |
+----------------------------------------------------------+
CONNECTORS
+-----Choose how qualification conditions are combine------+
| Prompt By Example asks you to choose how the previous |
| qualifications are to be combined with the next |
| qualification condition. The possibilities are: |
| |
| AND The previous conditions must be met and ... |
| OR The previous conditions must be met or ... |
| AND NOT The previous conditions must be met and not ... |
| OR NOT The previous conditions must be met or not ... |
| (Done) No more conditions are wanted |
+----------------------------------------------------------+
The program will then select the data and present the following menu. 8
+----------+
| SCREEN |
| PRINTER |
| FILE |
| END |
+----------+
Then if you choose "SCREEN", the report will be presented to the screen
allowing you to scroll up, down and to either side with the cursor control
keys, tab key, or the page up and page down keys. END will take you to
the bottom of the report and Home will take you back to the beginning.
Press ESC and then ENTER to return to the above menu. Choosing "PRINTER"
will print the report to your printer. This program uses no printer
control commands, so you will have to put your printer in condensed print
format if you choose more columns than will fit on your paper normally.
Choosing "FILE", will allow you to save this query, fill in a file name
when prompted. Warning!! Do not use the name "Rquery.dat", as that name
is reserved by the program.!
EXISTING REPORTS
Once again, you will be given a list of all Rbase databases in the current
directory. Simply highlight the one you wish to use and press ENTER.
You will then be offered a list of all the existing tables or views in
currently open database. Highlight your choice and press ENTER. If
there are no reports for the table or view you have chosen, you will get
an error message and return to the main menu. You will then be shown all
of the columns in the chosen table or view. You may choose to use all by
pressing ESC or you may choose up to 10 in any order you wish to view by
highlighting each in turn.
You will then go to the SORT screen. Once again you will be shown all of
the columns in the current table or view. After choosing a sort column you
can then choose "Ascending" or Descending". Each choice is numbered as to
the sort order. When you have made you choices press [F2]. If you wish
none, press ESC to go to the next screen.
You will now go to the conditions screen. Once again you will be able to
choose your conditions by highlighting your choice. When you press ENTER
you will be given a list of conditions to choose from (eg. EQ, GT,
CONTAINS, etc.) After choosing the condition you will be prompted, if
necessary for input to match the condition against. If you wish no
conditions, press ESC.
You may have multiple conditions. After each choice you are prompted to
choose one of the following: AND, OR, AND NOT, OR NOT, (DONE). Choose
DONE when finished with your conditions.
The program will then list all the available reports for the table or view
you have chosen to work with. Choose one.
The program will then select the data and present the following menu.
+----------+ 9
| SCREEN |
| PRINTER |
| FILE |
| END |
+----------+
If the report contains a global variable defined elsewhere, the report
will not print. All variables used in the report must be defined in that
report. To get around this problem, copy the report with the global
variable to a new name and remove all references to the global variable or
provide a constant equal to the variable.
CALCULATE
Next, you will be given a list of all Rbase databases in the current
directory. Simply highlight the one you wish to use and press ENTER. You
will then be offered a list of all the existing tables or views in the
currently open database. Highlight your choice and press ENTER.
You will now go to the conditions screen. Once again you will be able to
choose your conditions by highlighting your choice. When you press ENTER
you will be given a list of conditions to choose from (eg. EQ, GT,
CONTAINS, etc.) After choosing the condition you will be prompted, if
necessary for input to match the condition against. You must choose at
least one condition. If you wish to select everything in your database,
match any field that will always contain a value with IS NOT NULL.
You may have up to 10 conditions. After each choice you are prompted to
choose one of the following: AND, OR, AND NOT, OR NOT, (DONE).
Choose DONE when finished with your conditions.
You will then be asked as to what type of calculation you wish to perform.
You will be given the list [SUM, COUNT, MINIMUM, MAXIMUM, AVERAGE, STANDARD
DEVIATION, VARIANCE, and ALL]. Choose one. You will then be given a list
of available fields in the table or view you have chosen.
Choose one to apply the computation against based on the conditions you
have previously chosen.
The program will then print the result to the screen. If you chose ALL,
only the calculations that pertain to the field data type will be used.
After pausing, you may press any key to return to the main menu. You can
not save to file the results but you can do a PrintScreen.
Rprompt 10
Choosing this option will run the "RPROMPT.APX application. It first saves
the current user password, and prompts for a new one. (As the source code
is available, the built in password of "RQUERY" may be changed.) The user
will then be offered a blank screen with a small r>. The user can execute
any Rbase command that will fit on one line. On completion, the user
simply presses [ENTER] on a blank line to return to the Main menu. At that
time the User password that was saved is restored.
Select Printer Option
+-------------- PRINTER SETUP MENU --------------+
| (1) PICK TYPE OF PRINTER FOR APPLICATION |
| (2) ADD / UPDATE PRINTER TYPES |
| (3) EXIT |
+------------------------------------------------+
This option is used to select the default printer driver. If the Rbase
application has printer formating code in its reports, this routine will
allow the end user to select the driver that fits his printer. Unless the
calling application has a "SET PRINTER" command to overide this, then the
selection will stay in effect when Rquery is ended to return to the calling
application.
PRINTER SELECT
+√-------PRINTER-----------------MODEL------------------+
| |Hewlett-Packard |HP-Paintjet |
| |Hewlett-Packard |LaserjetII |
| |Hewlett-Packard |LaserjetIID |
| |Hewlett-Packard |LaserjetIIP |
| |IBM Corp. |IBM-Laser-printer |
| |IBM Corp. |Proprinter |
| |IBM Corp. |ProprinterXL |
| |IBM Corp. |Proprinter-X24 |
| |IBM Corp. |Proprinter-XL24 |
| |IBM Corp. |Proprinter-X24E |
|√ |IBM Corp. |Proprinter-XL24E |
| |IBM Corp. |Quickwriter-5204 |
| |IBM Corp. |ProprinterII |
+-------------------------------------------------------+
[ALT] MENU/FORM PRESS ANY CHARACTER 2X TO SELECT IN √ COLUMN
PRESS THE SPACE BAR 2X TO UNSELECT
[F7] SCROLL DOWN [F8] SCROLL UP
DISTRIBUTION AND REGISTRATION 11
Rquery3 is in a constant state of revision at this time and is in no way in
a final format. Therefore, as a user of this program, you accept the
possibility of a failure of the software to perform as documented. I would
appreciate being made aware of any bugs or suggested enhancements. A
compiled 2.xx and simi compatible RBase 3.xx version of the program of the
program "RQUERY" is also available.
As you know software copyright violation is rampant. This is why we have
created RQUERY3. RQUERY3 allows access to codelocked and compiled RBASE
applications without the need of purchasing a copy of RBASE to do custom
lookups and reports. While RQUERY3 is available for distribution, there
will be no need to pirate copyrighted software to obtain access to ones own
database. Please feel free to give RQUERY3 to your friends. We are
counting on you as a participant in the largest distribution network in the
nation (the owners and users of PCs) to make RQUERY3 a popular product.
With strong user support, RQUERY3 will be enhanced with new features and
capabilities making it more powerful. For twenty five (25) dollars you
can become a registered owner of RQUERY3. For your $25.00 you will appease
your conscience about using unregistered software, receive notice of
updates, and a copy of the latest version of RQUERY3.
The file FORM.TXT can be used as an order form.
SEND A CHECK TO: Jerry A. Horton
P.O. Box 274
Whitfield, MS 39193
We thank you for your support.