Ilnitckii Vyacheslav Georgievich - Senior teacher of computer science department of Akhmet Baitursynov Kostanay State University, Kazakhstan, Asia.

 

Program creation «Catalog of documents, posted on the various carriers»

In the article it is offered methods of creation the simple program, which one allows to create and work with catalog of documents, posted in the various carriers.

Key words: Database, program, catalog, search.

Introduction:  During the work on the each computer it often  collects many others documents. Clearing the computer, we copy these files on a disk. Over time to find necessary document is became problematic. This program is for search documents on the disc in different parameters.

Description of the program: For creation program is used Visual environment programming Borland Delphi 7.0 and database ACCESS. In the database fields are created, containing specification: the name of the document, location, the summery.  For research using one procedure, provided below. The procedure filters data, according to the data entered from the keypad.

 

 

 

procedure TForm1.Edit1Change(Sender: TObject);

        var s:string;

begin

 s:='';

 if edit1.Text<>''   then s:='название Like '+#39+'%'+edit1.text+'%'+#39;

 if CheckBox2.Checked  

     then begin if s<>'' then s:=s+' and ';

             s:=S+'код_темы = '+IntToStr(DataModule2.TTema['код_темы']);

            end;

 if CheckBox3.Checked

 then begin if s<>'' then s:=s+' and ';

   s:=S+'код_раздела = '+IntToStr(DataModule2.TRazdel['код_раздела']);

      end;

 if edit4.Text<>''

 then begin if s<>'' then s:=s+' and '; s:=S+'бокс = '+edit4.text;   end;

 if edit5.Text<>''

 then begin if s<>'' then s:=s+' and '; s:=S+'диск = '+edit5.text;   end;

 DataModule2.Tdisk.Filter:=s;

 DataModule2.Tdisk.Filtered:=CheckBox1.Checked;

end;

 

Conclusion:  Created program gives easy search and systematization of data, being on the disc, reduces time of research necessary information. Time, spent for creation program repeatedly pays simplicity and conveniently to use.

 

Literature:

1. Архангельский А.Я., Приемы программирования в Delphi на основе VCL: -

    Москва, Бином 2006 - 340 с.

2. Шумаков П.В., Фаронов В.В.: Delphi 4 руководство разработчика баз  

    данных -издатель: Москва, «Нолидж» 1999 - 560 с.