![]() |
Re: Inkompatible Typen TCaption und PAnsiChar???
Zitat:
|
Re: Inkompatible Typen TCaption und PAnsiChar???
Also kann man zusammenfassend sagen, dass TCaption ein String ist, wenn man mit der VCL arbeitet; und ein WideString, wenn man CLX verwendet.
Delphi-Quellcode:
MfG
//VCL:
type TCaption = type string; //und für CLX: type TCaption = type WideString; Binärbaum //Edit: Tippfehler ausgebessert |
Re: Inkompatible Typen TCaption und PAnsiChar???
Durch das "type" auf der rechten Seite wird aber ein neuer Typ deklariert und nicht ein Typ-Alias.
Der Grund ist, das man nun an TCaption in der IDE einen anderen Property-Editor binden kann als an string. |
Re: Inkompatible Typen TCaption und PAnsiChar???
Robert sagt es :?
PS: ist dieses eigentlich möglich?
Delphi-Quellcode:
Var S: String;
C: TCaption; C := TCaption(S); |
Re: Inkompatible Typen TCaption und PAnsiChar???
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:47 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