|
Learn Step-by-step how
to write the application -
JB_APP_KJV application developed with
JBuilder X .
- Name - JB_APP_KJV
- Database
Software. Datasource
type ODBC
- Data Source type
ODBC file.
- DSN -
KJV2002A
- Driver type -
Microsoft Access driver (*.mdb).
- Database file -
KJV2002.mdb -
(C:\JB_APP_KJV\pic\KJV2002,mdb)
|
- Developed with
JBuilder X
- Microsoft
Access database file - KJV2002.mdb.
This KJV2002 database file stores 4 books of
Bible data. - (every book has a
title and consists of several
chapters and every chapter consists of several
verses) The database consists of one table -
BibleTable. The table stores more then 3781
records and each record consists of five fields -
Book, Title,
Chapter, Verse and
TextData: - The Book field
stores the oders of the books - (4 books). - The
Title field stores the titles of the books. -
The Chapter field stores the orders of all
chapters. - The Verse field stores the orders
of all verses. - The Textdata field stores the
contents of all verses.
- Functions:
View , Search, Show Form and
Animation.
- Project - JB_APP_KJV and those
items
- Requirements:
Broland
JBuilder X Entreprise
If
you want to run it:
- Remove the
read-only attribute of all files in the
folder - C:\JB_APP_KJV
- Create
DSN - Data Source Name , KJV2002A
(Datasource type ODBC)
Window XP -
To open Data Sources (ODBC) and create DSN
- click Start, click Control
Panel, and then click Performance and
Maintenance. Click Administrative
Tools, and then double-click Data Sources
(ODBC).
- The ODBC Data Source Administrator
dialog box appears, select the
Sytem DSN tab and
then click
Add.
- The Create New Data Source
dialog box appears, select Microsoft
Access Driver (*.mdb)and
then click
Finish.
- The ODBC Microsoft Access
Setup dialog box appears, in the Data
Source Name box
type
KJV2002A, click Select
, Select database
dialog boxi appears, choose the Access file
corresponding KJV2002.mdb
(C:\JB_APP_KJV\pic\KJV2002,mdb)
and then click
OK.
- Click OK, to exit the
ODBC Microsoft Access Setup
dialog box.
- Click OK, to exit the
ODBC Data Source Administrator
dialog box.
|
- Run the
Broland JBuilder X Entreprise
- From
File menu, then
choose Open Project, the Open
Project or Project droup
dialog box appears, select the Project
File (C:\JB_APP_KJV\JB_APP_KJV.jpx) and then
click Ok
- From
Run menu, choose and click
Run Project.
| |
After
running,
you can observe the following Forms design
...:
The
design .. |
 |
List of Functions ...
To
call the Book_Frame. - (From
Main Menu menu, click Book)
To
call the Main_class_AboutBox - (From
Main Menu menu, click
About)
To
unload the current project. - (From
Main Menu menu, click Exit
)
Animation
pictures, using Timer | |
The
design .. |
1st Page selected of TabbedPane
control.. |
 |
2nd Page selected of TabbedPane
control.. |
 | |
List of Functions ...
To
display any records of KJV2002
database into the Record data boxes.
To
move the current record position to the
first, last, next, or previous record. - (Click the
navigation buttons )
To
unload the current Form. - (Click the button
Close)
To search By
word: - (1st Page of TabbedPane Control
selected)
Type a word - (length > 1
characters) in the TextField, the Button -
Search set enable.
Click the Button Search, two
types of information appear:
- A
list of information about all
records of the KJV2002 database include the word
you specified will appears in the List
control - (each list item stores the order of
the record corresponding and the values of Book
field, Title field, Chapter field and Verse
field in this record).
- The
number of the records found.
|
Select an item of the List,
the record corresponding to the item selected displays
into the Record data boxes.
|
To search By
address: - (2nd Page of TabbedPane Control
selected)
- The
Book ComboBox stores the orders of all
books - ( 4 books). Select an item:
- In the
Book ComboBox, displays the
item selected.
- In the
Title ComboBox, displays the
title of the book corresponding
to the item selected..
- The
Chapter ComboBox stores
all chapters orders of this
book and in the current string displays
the 1st chapter order.
- The
Verse ComboBox stores
all verses orders of the 1st
chapter and in the current string
displays the 1st verse
order.
- Into the
Record data
boxes, displays the 1st
record of this book.
|
- The
Title ComboBox stores the titles of the
books - ( 4 books). Select an
item:
- In
this ComboBox, displays the
item selected.
- In the
Book ComboBox, displays the
order of the book corresponding
to the item selected.
- The
Chapter ComboBox stores
all chapters orders of this
book and in the current string
displays the 1st chapter
order.
- The
Verse ComboBox stores
all verses orders of the 1st
chapter and in the current string
displays the 1st verse
order.
- Into the
Record data
boxes, displays the 1st
record of this book.
|
- The
Chapter ComboBox stores all chapters
orders corresponding to the order
Book displays in the Book ComboBox. Select an item:
- In
this ComboBox, displays the
item selected.
- The
Verse ComboBox stores
all verses orders corresponding
to the item selected and in the current
string displays the 1st verse
order.
- Into the
Record data boxes, displays the
1st record of the book chapter.
|
- TheVerse ComboBox stores all verses
orders of the chapter corresponding to the
items display in the Chapter and Book ComboBoxes. Select an item:
- In
this ComboBox, displays the
item selected.
- Into the
Record data
boxes, displays the record
corresponding to the item selected.
| | | |
The
design .. |
 |
List of Functions ...
To
display information about the KJV2002
database ....
To
unload the current Form. - (Click the button
Ok)
| |
|
|