![]() |
Crystal Reports VCL XI und Delphi 2009
Hallo Ihr Lieben,
habe heute Delphi 2009 installiert und stehe nun vor einem mittelschweren Problem... Die VCL von CR läuft nicht mehr. :roll: Die UCrpe32 kann nicht kompiliert werden.
Delphi-Quellcode:
PE_RPTOPT_CVTDATETIMETOSTR : FConvertDateTimeType := ToString;
...
case ReportOptions.convertDateTimeType of PE_RPTOPT_CVTDATETIMETOSTR : FConvertDateTimeType := ToString; PE_RPTOPT_CVTDATETIMETODATE: FConvertDateTimeType := ToDate; PE_RPTOPT_KEEPDATETIMETYPE : FConvertDateTimeType := ToDateTime; else FConvertDateTimeType := ToDateTime; end; ... Fehler: Inkompatible Typen: 'TCrDateTimeType' und 'string' :gruebel: Hat jemand einen Rat für mich? Danke, Romy |
Re: Crystal Reports VCL XI und Delphi 2009
Was steckt hinter TCrDateTimeType?
|
Re: Crystal Reports VCL XI und Delphi 2009
Delphi-Quellcode:
TCrDateTimeType = (ToString, ToDate, ToDateTime);
|
Re: Crystal Reports VCL XI und Delphi 2009
Und FConvertDateTimeType ist vom Typ TCrDateTimeType?
|
Re: Crystal Reports VCL XI und Delphi 2009
TObject hat jetzt eine ToString-Methode und diese versucht der Compiler zu ziehen.
Schreib mal:
Delphi-Quellcode:
E_RPTOPT_CVTDATETIMETOSTR : FConvertDateTimeType := TCrDateTimeType.ToString;
|
Re: Crystal Reports VCL XI und Delphi 2009
Vielen Dank!!! Das hat funktioniert.
Gibt es eine Übersicht über diese Funktionen? Haben nämlich schon ein neues Problem in der Pas QRExpr (von QuickReport)
Delphi-Quellcode:
aString[pos('.', aString)] := DecimalSeparator;
if result.Kind = resDouble then
begin if DecimalSeparator <> '.' then begin while pos('.', aString) > 0 do aString[pos('.', aString)] := DecimalSeparator; end; try result.dblResult := StrToFloat(aString); except result := ErrorCreate(Format(SqrExpIllegalCharInNumeric, [aString])) end; end; Inkompatible Typen: 'AnsiChar' und 'Char' Dafür sollte ich wohl besser einen neuen Thread eröffnen, da es ja nicht zu Crystal gehört. Romy |
Re: Crystal Reports VCL XI und Delphi 2009
Zitat:
![]() Zitat:
Gibt nicht evtl. schon ein D2009-Update von CR? |
Re: Crystal Reports VCL XI und Delphi 2009
Zitat:
Zitat:
Delphi-Quellcode:
aString : string[255];
Zitat:
Romy |
Re: Crystal Reports VCL XI und Delphi 2009
Zitat:
geht auch
Delphi-Quellcode:
aString: String
... SetLength(aString, 255); |
Re: Crystal Reports VCL XI und Delphi 2009
Du hast mir sehr geholfen! Hab vielen Dank.
Ich habe mir die Erläuterung zu Ansi und Unicode runtergeladen... und wurschtel mich da jetzt durch. Mein Programm funktioniert erst mal. Also nochmal Danke! Romy |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:59 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz