Article View: pl.comp.lang.delphi.bazy-danych
Article #322Re: Tworzenie nowych tabel Dbase
From: vojarz
Date: Sat, 17 Apr 1999 09:25
Date: Sat, 17 Apr 1999 09:25
43 lines
1704 bytes
1704 bytes
Przyklad wystarczy za 1000 slow :
Procedure TForm1.CreateMagazyn;
begin
{ TABELA MAGAZYN }
with TTable.Create(Self) do
begin
DatabaseName:=DST_DIR;
TableName := 'GMAGAZYN';
TableType := ttDbase;
with FieldDefs do
begin
Clear;
Add('ID_MAG' , ftAutoInc, 0 , True) ;
Add('NAZWA_MAT' , ftString, 50 , True) ;
Add('ILOSC' , ftFloat , 0 , True) ;
Add('KATEGORIA' , ftString, 2 , False);
Add('STAN_AWAR' , ftFloat, 0 , False);
Add('UWAGI' , ftMemo , 0 , False);
end;
with IndexDefs do
begin
Clear;
Add('ID PRODUKTU', 'ID_MAG', []);
Add('NAZWA MATERIALU', 'NAZWA_MAT', []);
end;
try
CreateTable;
finally
Free;
end
end;
end;
Zorro napisał(a) w wiadomości: <7f7deh$ueq$1@dino.wsi.edu.pl>...
>Czesc.
>Jak utworzyc z poziomu programu nowa tabele Dbase wraz z indeksami.
>Odpowiedzi kierowac na adres:
>
>zorro@wsi.edu.pl
>
>
>
Technical Details
Message-ID:
<7f9k2j$53q$1@polonez.man.lodz.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.man.lodz.pl!not-for-mailReferences:
<7f7deh$ueq$1@dino.wsi.edu.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!agh.edu.pl!ict.pwr.wroc.pl!news.man.lodz.pl!not-for-mail From: "vojarz" <vojarz@usa.net> Newsgroups: pl.comp.lang.delphi.bazy-danych Subject: Re: Tworzenie nowych tabel Dbase Date: Sat, 17 Apr 1999 11:25:32 +0200 Organization: Metropolitan Area Network in Lodzi Lines: 45 Message-ID: <7f9k2j$53q$1@polonez.man.lodz.pl> References: <7f7deh$ueq$1@dino.wsi.edu.pl> NNTP-Posting-Host: zagrodniki.retsat1.com.pl X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit