Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Di 04.09.07 21:32 
Hi, Delpher,

wie erzeuge ich genau bei einer neuen Tabelle ein Datumsfeld?

bisher habe ich:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
with TbSynctab do
    begin
      Active := False;  //DatabaseName := '';
      TableName := concat(home, 'Synctab',inttostr(j), '.dbf');
      TableType := ttDefault;  //ttDBase;
      FieldDefs.Clear;
      FieldDefs.Add('Name',       ftString,   25, False);
      FieldDefs.Add('Vorname',    ftString,   25, False);
      FieldDefs.Add('Klasse',     ftString,    5, False);
      FieldDefs.Add('Gebdat',     ftDate,  // ???????);


Was kommt da statt der Fragezeichen genau hin? Ich habe kein Beispiel gefunden.

Danke für Hilfe,
Detlef
dummzeuch
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 593
Erhaltene Danke: 5


Delphi 5 ent, Delphi 6 bis Delphi XE8 pro
BeitragVerfasst: Di 04.09.07 23:03 
user profile iconD. Annies hat folgendes geschrieben:
wie erzeuge ich genau bei einer neuen Tabelle ein Datumsfeld?

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
with TbSynctab do
    begin
      Active := False;  //DatabaseName := '';
      TableName := concat(home, 'Synctab',inttostr(j), '.dbf');
      TableType := ttDefault;  //ttDBase;
      FieldDefs.Clear;
      FieldDefs.Add('Name',       ftString,   25, False);
      FieldDefs.Add('Vorname',    ftString,   25, False);
      FieldDefs.Add('Klasse',     ftString,    5, False);
      FieldDefs.Add('Gebdat',     ftDate,  // ???????);

Versuch's mal mit ,0,false

twm
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mi 05.09.07 06:35 
Schönen Dank, dummzeuch,

weißt du "zufällig" auch, was sich hinter der 0 verbirgt? Gibt es da einen Sinn/Grund?

CU, Detlef
dummzeuch
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 593
Erhaltene Danke: 5


Delphi 5 ent, Delphi 6 bis Delphi XE8 pro
BeitragVerfasst: Mi 05.09.07 10:37 
user profile iconD. Annies hat folgendes geschrieben:
weißt du "zufällig" auch, was sich hinter der 0 verbirgt? Gibt es da einen Sinn/Grund?


Das ist einfach ein Dummy-Wert fuer Faelle, in denen keine Laenge angegeben werden muss.

twm
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mi 05.09.07 11:01 
Danke!