home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
rbbs
/
172a-new.lzh
/
RDB.DOC
< prev
next >
Wrap
Text File
|
1989-05-23
|
6KB
|
189 lines
Documentation for Remote Data Base
by Ken Goosens
24 May 1989
Remote Data Base (RDB) is a new, built in facility in RBBS 17.2A.
It gives the sysop the ability to:
o set up unlimited numbers of named data bases
o set up menus to interact with the user
o prompt users for data
o use Metavariables - both work variables and SmartText variables.
o store user's answers in work variables. Any subfield in a
work variable can be referenced.
o display, or store all metavariables
o process commands conditionally
o save Metavariables to file thru templates, allowing data to
be stored in virtually any format desired
o retrieve data into templates for display.
o do full screen data entry
Full Screen Processing
RBBS now supports "full screen" questionnaires and macros, though this
takes some work on the sysop's part to set up. Essentially you use
ANSI screen commands, transmit a template which clears the
screen at the top, and then transmit the data into the template.
The "full screen" is not the complete full screen in which the caller
can use keys like tab and arrows to move around. It is full screen
in the sense that the caller sees all the data that is to be enterred
and the cursor moves from field to field.
Examples of Applications
For Sale - ask user item, price, who to contact, telephone #.
Callers can add items, or view list of items.
BBS lists - Callers can view data base, or add BBS's where
asked for name, numbers, profile of features. No longer do
BBS ads have to be left in messages. Can have informative,
standardized profile that makes BBS comparision meaningful.
BIO - ask users for a profile of themselves so others can know
who they are.
VOTING - can collect nominations say for best GIF files. No
way yet to force a caller to vote only once.
Details of an Application
This application manages a data base of who is willing to help
with RBBS by topic. It is controlled at a high level by the
following questionnaire.
C:DUMMY.DAT,4
* This questionnaire is for finding help with RBBS by topic.
* Please register yourself if you
* o are willing to help others, and
* o know enough about a topic to help
*
* Examples of topics people need help with:
* Desqview Modem models (HST, Everex, USR Internal, etc.)
* PC-Slaves Protocols Conferences FMS
* Doors DoubleDos Subboards PUI
* Questionnaires 10-Net Marcos Uploads
* MU-Purge File maint. Personal dwld Caller Analysis
*
:-[prompt]-
T
? V)iew database, E)nter new data, Q)uit (V,E,Q)
=V-[view]-=E-[add]-=Q-[quit]-= -[prompt]-
:-[view]-
M C:\RBBS\VIEWHELP.MCR
>-[prompt]-
:-[quit]-
@
:-[add]-
* 703-978-6360
?1 BBS data number
* 703-978-4339
?2 Voice # (evening, 0 not to give)
* You can specify as many topics as desired, one at a time.
*
:-[topic]-
?3 RBBS topic you will help others with, or Q)uit
=Q-[prompt]-= -[addrec]-
:-[addrec]-
* -Topic- - Data # - - Voice # - Last Name First Name
*/FL[3] [1] [2] {LN {FN
T
?Really add this record (Y,N)
=Y-[really]-=N-[topic]-= -[addrec]-
:-[really]-
M C:\RBBS\ADDHELP.MCR
>-[topic]-
Two macros are used by this questionnaire: VIEWHELP.MCR for displaying
the data base, and ADDHELP.MCR for appending new data to the data base.
For more documentation on macro commands, see MACROS.DOC.
VIEWHELP.MCR contains
5
{*1 -Topic- - Data # - - Voice # - Last Name First Name
{*F RBBSHELP.DAT
{ST
ADDHELP.MCR contains
5
{>> RBBSHELP.DAT /FL
[3] [1] [2] {LN {FN
{END
{ST
A Full Screen Application
Full screen is available only in a color graphics version of questionnaires
and macros. A long application for collecting BBS information is given
in these following files:
REGRBBS.DEF - Questionnaire driver, TTY version
REGRBBSC.DEF - Color graphics version of questionnaire driver
VUNRBBS.MCR - View data base macro, TTY version
VUNRBBSC.MCR - View data base macro, Color graphics version
SVRBBS.MCR - Macro to save data to a comma separated data file
Hints a Building Your own Applications
Generally you will have
o a questionnaire driver that gives caller option to exit, view
database, or Enter new data.
o a macro to retrieve data from file to a form
o a macro to save data in a data base format.
o a data entry routine in the questionnaire.
Full screen is more complicated that TTY. Generally, you will want
o to paint a template with all everything but the data values,
such as row and column labels and titles.
o to clear out the existing values in a form and then put in
the new values.
You transmit only the changes to a screen rather than retransmitting
the entire screen when only a part changes.
You use ANSI commands to control the screen. Where [ESC] stands
for the one-character Escape (ascii 27), the most useful ANSI commands
to know are:
[ESC][2J - clear the screen.
[ESC][K - clear from current cursor postion to end of line. Cursor
position after clearing is same as before.
[ESC][X;Yf - position the cursor on row x and column Y. E.g.
"[ESC][5;10f" positions on column 10 of row 5.
Case is signficant in ANSI commands, so beware that "[ESC][k" will NOT
clear to end of line, and "[ESC][1;7F" will not position the cursor.
You can use ANSI commands to reverse the video and change blinking and
set color. An easy way consistent with RBBS to set colors is to use
the SmartText variables C0, C1, ..., C4, where 1-4 are the colors set
on config and C0 is "emphasis off" that restores normal text color
perference of the caller. E.g.
[ESC][2J{C1[ESC]1;15fSample Title-{C0 [1]
clears the screen, sets color to 1, positions on line 1, column 15,
prints "Sample Title-", sets color to caller's text preference, prints
2 spaces, then prints value of work variable 1.