Autor Beitrag
$ebbi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Sa 12.03.11 19:15 
Hi,

dummer frage aber wie kann ich dieses Zeichen ' als string speichern, oder in ein edit reinschreiben lassen? Delphi will dann immer noch ein zweites also '', wie mans halt gewohnt ist, aber geht auch eins alleine?

mfg Sebbi

Edit: Mir is grad noch was eingeafallem:

Ich hab ein Text in einer txt datei gespeichert z.b. der einfachheithalber : Edit1.text:= 'Hallo';, wie kann ich den text jetzt z.b in einen Button reinschreiben und wenn ich auf den Button drücke soll eben das passieren?


Zuletzt bearbeitet von $ebbi am Sa 12.03.11 19:25, insgesamt 1-mal bearbeitet
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 12.03.11 19:23 
So hier:

ausblenden Delphi-Quelltext
1:
Edit.Text := 'Hallo so genannte ''Welt''';					
HenryHux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 542
Erhaltene Danke: 33

Windows 7 Premium
Delphi XE, Eclipse
BeitragVerfasst: Sa 12.03.11 19:23 
Das geht mir Chr(39).

Lg
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 12.03.11 19:24 
user profile iconHenryHux hat folgendes geschrieben Zum zitierten Posting springen:
Das geht mir Chr(39).

Lg


So geht das selbstverständlich auch (oder halt #39).
$ebbi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Sa 12.03.11 19:26 
Danke das ging ja schnell :)

hier noch meine 2. frage

Ich hab ein Text in einer txt datei gespeichert z.b. der einfachheithalber : Edit1.text:= 'Hallo';, wie kann ich den text jetzt z.b in einen Button reinschreiben und wenn ich auf den Button drücke soll eben das passieren?
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Sa 12.03.11 19:30 
Normalerweise gilt: eine Frage pro Thread.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.ButtonClick(Sender: TObject);
begin
  Button.Caption := Edit1.Text;
end;
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8553
Erhaltene Danke: 479

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Sa 12.03.11 19:53 
Fragen zu dem Parser bitte in einem neuen Thread stellen. Das ist ein etwas komplexeres Thema als ein ' im String. ;-)

Edit: Folgeposting hier gelöscht, das hat sich wohl mit dem Hinweis hier überschnitten, und $ebbi hat auch schon ein neues Topic aufgemacht. :)

_________________
We are, we were and will not be.