Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
19. Feb 2009
type
TDateTime = type Double;
TDate = type TDateTime;
Real = Double;
ich vermute mal da liegt das Problem ... beides ist im Grunde ein Double
falls es nicht stört kannst du ja TDate und Co. auch als Double speichern, also nur noch eine Funktion.
Forum: Object-Pascal / Delphi-Language
Delphi
by himitsu,
19. Feb 2009
Da 0.0 keinen Typ hat, weiß der Kompiler nun nicht welchen Float-Typ (Real oder Double/TDate) er dafür festlegen soll.
versuch mal
rValue := GetValue ('Betrag', Real(0.00));
oder
const myRConst: Double = 0.0;
rValue := GetValue ('Betrag', myRConst);