Autor Beitrag
Limster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72


Delphi 5 & 7 Enterprise
BeitragVerfasst: Fr 11.07.08 17:48 
Hallo,

was mache ich falsch:

Ich brauche ein Betragfeld und habe dies als NUMERIC(10,4) definiert.

Habe mal mitgesteppt und im TBDEDataSet.AddFieldDesc wird das Datenbankfeld als DatenTyp ftBytes erkannt
und nicht als ftBcd ... daher kann ich dann auch nicht damit arbeiten.

Kommt dann der Fehler "Cannot access field as type float" .. sagt aber nichts aus,
da das TField nicht als TBCDField erzeugt wurde weil es eben nur als ftBytes erkannt wurde

die Firebird-Datenbank hat DIALECT 3, im BDE Administrator (5.01) habe ich EnableBcd auf TRUE gestellt
('EnableBcd'-Feld war hier zuvor nicht verfügbar, musste etwas in der registry ändern (laut Google;)))

warum funkt das nicht ? (DELPHI 6)


Grüsse,
Limbo
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 11.07.08 19:07 
Warum Bde?
Was muss noch alles passieren, das man endlich die BDE in Ruhe sterben lässt.

_________________
Markus Kinzler.
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 11.07.08 20:33 
user profile iconLimster hat folgendes geschrieben:
..(laut Google;)))..


Und das ist wirklich dein Ernst ? Ja gut, man kann alles glauben. :mrgreen: Firebird würde ich jedenfalls nicht mit der BDE betreiben.

_________________
Gruß
Hansa
Limster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72


Delphi 5 & 7 Enterprise
BeitragVerfasst: Fr 11.07.08 22:21 
Was würdet ihr mir dann empfehlen ?
Dass BDE ausgestorben ist weiß ich schon .. ;)

Zeos hab ich probiert, jedoch bekomme ich immer eine Zugriffsverletzung,
wenn die Query das erste mal öffne .. beim 2ten mal klappts dann.
Ändere ich den SQL text und öffne sie wieder, gibts wieder ne exception.
Lässt sich nicht debuggen..die zugriffsverletzung macht ne dll

Achja, und ich möchte sie nur lokal betreiben..am besten es muss nichts
vom anwender installiert oder konfiguriert werden (ich weiß ..BDE :lol:)

mfg
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Fr 11.07.08 23:00 
Bei Delphi sollten eigentlich die IBX Komponenten bei sein, z.B. TIBDatabase oder TIBQuery.
Damit geht das eigentlich ganz gut.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 12.07.08 10:35 
Oder dbExpress, ADO, UIB, AnyDAC, IBDAX, FIBPlus, MDO, ...

_________________
Markus Kinzler.