Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
неологизмы.doc
Скачиваний:
0
Добавлен:
01.04.2025
Размер:
672.26 Кб
Скачать

Tables of database of the NeoLog program

The basic file of database of the NeoLog program is called Words.db and has the following structure:

Field Name

Type

Size

Key

1

Word

A

50

*

2

Source

A

20

3

Target

A

20

4

Uses

A

20

5

Note

M

240

6

Eh

M

240

A - string to 250 symbols, M - texts that consist of many lines, * - in the Key column means that on the Word field, sorting of information is carried out.

Records of other files of database: Source.db, Target.db, Uses.db consist of one field. These tables are auxiliary and serve as fixed data source for the proper fields of the table Words.db.

Combinig of databases with the components of the program

For adjusting of connection between the tables of databases and components of the project special components Table and DataSource are used. For Table the DatabaseName property even Alias is set. It was created and specifies the way to the files of database, and also the TableName property, even to the name of file of database. For the DataSource component the DataSet property even to the name the Table components which she associate with is set. Studying the information of databases is carried out with the help of the components, which are in the inset of the palette of instruments with the Data Controls name. Necessary component is set on a form and is contacted with a database by the DataSource and DataField properties. In order the component used data from the database, the active component "Table" propertly must have the meaning "True".

At the use of a several tables of database Table and DataSource pair must correspond to each table with the proper adjusting, therefore in our program there are four of them.

Visible and invisible components

The components of the VCL library have various allocations. One of them are intended for the reflection of information, the others provide only combining with other objects. The first ones are called visible components, the others - invisible. For example, Button component is a visible one, Table and DataSource components are invisible. The NeoLog Program also uses the other invisible components: MainMenu, SaveDialog, OpenDialog. With the help of the MainMenu component multilevel menus can be created. For example, the menu of the Neolog program has the following structure:

Dictionary

Search

Parameters

DSL

Info...

All

Exit

To create

Computer

Formed

To open

Economy

Industries

----------------

Media

To store

Medicine

Narco

People

Politic

Sport