Autor Beitrag
Jagg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Fr 18.07.03 16:40 
Hallo Leute !

Ich benutze Windows 2000 Professional und erstelle in meinem Programm Tabellen (DBase) in Delphi !
Aber wenn ich das Programm in das Betriebssystem Windows NT integriere,dann erstellt das Programm mir keine Tabellen !

Meine Frage :
Kann man unter Windows NT keine Tabellen (DBase) erstellen ???

Jagg !
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Fr 18.07.03 22:30 
hi,
poste mal deinen Quelltext; unter NT sollte auch dieses möglich sein.
grez
msch
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Fr 18.07.03 23:39 
hallo jagg!

winNT legt dir nichts in den weg, wenn du DBase-tabellen zur laufzeit erstellen willst. es ist daher sehr wahrscheinlich, dass es an deinem programm-code liegt ;)

mfg, stefan
ps: bei mir funktionierts problemlos
Jagg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Mo 21.07.03 14:04 
aber wenn winNT mir nichts in den weg liegt,woran liegt es denn das ich unter Win2000 tabellen erstellen kann und unter WinNt nicht ???
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Mo 21.07.03 17:21 
da w2k auf NT basiert, liegt die Lösung nahe, dass dein code nicht sauber arbeitet. bitte poste doch einfach mal etwas code, wir gesagt, das Orakel ist im urlaub .
grez
msch
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Mo 21.07.03 20:17 
wo verbringt denn das orakel seinen urlaub?
sag aber jetzt nicht 'in delphi' *rofl*

mfg, stefan
Jagg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Do 24.07.03 07:20 
Hier ist mein Code :
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
if not FileExists('Sams_'+ed_filnr.text+'.dbf') then
        begin
          with Table1 do
          begin
            Active    := false;
            DataBaseName := 'C:\BiBA\Mail\';
            TableName := 'Sams_'+ed_filnr.text+'.dbf';
          with FieldDefs do
          begin
            Clear;
            with AddFieldDef do
            begin
              Name := 'Datum';
              DataType := ftDateTime;
            end;
            with AddFieldDef do
            begin
              Name := 'Fil';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'Leitung';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'VerkVoll';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'Teilzeit';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'Aushilfe';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'Miniteil';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'Azubi';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'Bez';
              DataType := ftInteger;
            end;
            with AddFieldDef do
            begin
              Name := 'Einarb';
              DataType := ftInteger;
            end;
          end;
          with IndexDefs do
          begin
            Clear;
            with AddIndexDef do
            begin
              Name := 'Index';
              Fields := 'Datum';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index1';
              Fields := 'Fil';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index2';
              Fields := 'Leitung';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index3';
              Fields := 'VerkVoll';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index4';
              Fields := 'Teilzeit';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index5';
              Fields := 'Aushilfe';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index6';
              Fields := 'Miniteil';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index7';
              Fields := 'Azubi';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index8';
              Fields := 'Bez';
              Options := [ixExpression];
            end;
            with AddIndexDef do
            begin
              Name := 'Index9';
              Fields := 'Einarb';
              Options := [ixExpression];
            end;
          end;
        CreateTable;
        Active := true;
         end;
        end
        else
        begin
          Table1.Active := False;
          Table1.DataBaseName := 'C:\BiBA\Mail\';
          Table1.TableName :='Sams_'+ed_filnr.text+'.dbf';
          Table1.Active := True;
        end;
        Table1.Edit;
        Table1.FieldByName('Datum').AsString    := lb_Samstag_Date.caption;
        Table1.FieldByName('Fil').AsString      := ed_filnr.text;
        Table1.FieldByName('Leitung').AsString  := ed_Filial_L.text;
        Table1.FieldByName('Verkvoll').AsString := ed_VK_VZ.text;
        Table1.FieldByName('Teilzeit').AsString := ed_VK_TZ.text;
        Table1.FieldByName('Aushilfe').AsString := ed_Aushilfe.text;
        Table1.FieldByName('Miniteil').AsString := ed_MiniTeilzeit.text;
        Table1.FieldByName('Azubi').AsString    := ed_Azubi.text;
        Table1.FieldByName('Bez').AsString      := ed_Bezirks_L.text;
        Table1.FieldByName('Einarb').AsString   := ed_Einarbeitung.text;
        Table1.Post;
        Close;
        Form1.Show;
      end;
     end;
    Table1.Close;

.... unter Win2000 läuft das Programm,aber nicht unter WinNT !
Was ist dara falsch ???

Jagg !

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Do 24.07.03 07:26 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
if not FileExists('Sams_'+ed_filnr.text+'.dbf') then 
        begin 
          with Table1 do 
          begin 
            Active    := false; 
            DataBaseName := 'C:\BiBA\Mail\'; 
            TableName := 'Sams_'+ed_filnr.text+'.dbf'; 
          with FieldDefs do

hmmm, auf die schnelle fällt mir nur auf, dass du nur prüfst, ob eine Datei vorhanden ist; allerdings ohne Pfad. Stell doch mal bei FileExists() den kompletten Filenamen ein und prüfe dass - hab leider selbst kein NT am laufen.

grez
msch

Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
Jagg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 635



BeitragVerfasst: Do 24.07.03 12:23 
ne hab schon versucht,das ist es nicht !
freddy437
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Di 29.07.03 16:32 
blöde Frage, aber manchmal scheitert man auch an der Schreib-Berechtigung für den PC-Ordner. Haste da schon mal geschaut?
Kannst du die NOT EXISTS-Prüfung mal raus nehmen und dann das Programm unter der Windows eNTe laufen lassen. Schmeisst er dir irgend einen Fehler um die Ohren?
RonLipp
Hält's aus hier
Beiträge: 13

WinXP
D5 Prof
BeitragVerfasst: Mi 30.07.03 14:28 
Möglicherweise stört der abschließende Backslash in Databasename.

_________________
Danke für Ihre Aufmerksamkeit!