Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Inkompatieble Typen: TString und String (https://www.delphipraxis.net/28139-inkompatieble-typen-tstring-und-string.html)

Äfan 20. Aug 2004 02:23


Inkompatieble Typen: TString und String
 
Ich habe mal wider ein problem: Ich will, dass der Text einer Memo in ein Variable eingefügt wird. Wenn ich das so mache: MyVar := Memo.Lines dann kommt ne Fehlermeldung "Inkompatible Typen: 'TStrings' und 'String'". Wie kann ich mein Ziel trotzdem erreichen ?

nailor 20. Aug 2004 02:26

Re: Inkompatieble Typen: TString und String
 
Delphi-Quellcode:
myvar = memo.Text;

andianon 23. Aug 2004 14:49

Re: Inkompatieble Typen: TString und String
 
var
myvar : String;

[...]
myvar := mymemo.Text;
[...]


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:02 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz