Autor Beitrag
muppet max
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 10.04.06 19:38 
Was mache ich hier falsch?

ausblenden Delphi-Quelltext
1:
Form1.SynEdit1.SelText:=(SynMemo1.Lines);					


es erscheint die meldung: Tstrings und string sind inkompitabel :(

wie kann ich das lösen, dass es komptabel wird :D

danke :D
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 10.04.06 19:42 
ausblenden Delphi-Quelltext
1:
Form1.SynEdit1.SelText:=SynMemo1.Text;					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mo 10.04.06 19:44 
TStrings (TStringList) isteine Liste von Strings. Es gibt nun mehrere Mögkichkeiten darazs einen String zu machen.
1. Nur ersten Teilstring: SynMemo1.Lines[0];
2. Alles Teilstring durch Komma getrennt: SynMemo1.Lines.CommaText;
3. Alle Teilstring mit freiem Trennner: SynMemo1.Lines.Delimiter := '<Trennzeichen>';SynMemo1.Lines.DelimitedText;

_________________
Markus Kinzler.